Skip to content

Commit

Permalink
fixup! PackageInstaller: link "App info" screen from the uninstallati…
Browse files Browse the repository at this point in the history
…on dialog

Fix this link not working in some cases for user profile apps.
  • Loading branch information
muhomorr authored and thestinger committed Nov 5, 2024
1 parent 42f7d34 commit cce897a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -301,11 +301,11 @@ public void onClick(DialogInterface dialog, int which) {
((UninstallerActivity) getActivity()).dispatchAborted();

if (which == Dialog.BUTTON_NEUTRAL) {
String pkg = ((UninstallerActivity) getActivity()).getDialogInfo().appInfo.packageName;
Intent i = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
i.setData(Uri.fromParts("package", pkg, null));
UninstallerActivity.DialogInfo dialogInfo = ((UninstallerActivity) getActivity()).getDialogInfo();
var i = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
i.setData(Uri.fromParts("package", dialogInfo.appInfo.packageName, null));
i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);
startActivity(i);
getActivity().startActivityAsUser(i, dialogInfo.user);
}
}
}
Expand Down

0 comments on commit cce897a

Please sign in to comment.