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 6, 2024
1 parent 63daaf6 commit 5215462
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 5215462

Please sign in to comment.