Button that goes from app info details to app info
This info button is shown on the header of all app detail pages. This button is hidden when coming from app info, to avoid allowing users to go in circles. Since app notification details had a settings button where the new info button goes, the app notification settings will move down to be a preference (this matches the usage access screen UX). Also fix a bug in launching app notification settings for managed profiles. Bug: 20633669 Change-Id: Idbb4f7c3326b4c6b0a19559b722ee0406eaba6c0
This commit is contained in:
@@ -429,10 +429,11 @@ public class ManageApplications extends InstrumentedFragment
|
||||
Activity activity = getActivity();
|
||||
switch (mListType) {
|
||||
case LIST_TYPE_NOTIFICATION:
|
||||
activity.startActivity(new Intent(Settings.ACTION_APP_NOTIFICATION_SETTINGS)
|
||||
activity.startActivityAsUser(new Intent(Settings.ACTION_APP_NOTIFICATION_SETTINGS)
|
||||
.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)
|
||||
.putExtra(Settings.EXTRA_APP_PACKAGE, mCurrentPkgName)
|
||||
.putExtra(Settings.EXTRA_APP_UID, mCurrentUid));
|
||||
.putExtra(Settings.EXTRA_APP_UID, mCurrentUid),
|
||||
new UserHandle(UserHandle.getUserId(mCurrentUid)));
|
||||
break;
|
||||
case LIST_TYPE_DOMAINS_URLS:
|
||||
startAppInfoFragment(AppLaunchSettings.class, R.string.auto_launch_label);
|
||||
|
Reference in New Issue
Block a user