diff options
author | Amith Yamasani <yamasani@google.com> | 2013-04-25 11:03:33 -0700 |
---|---|---|
committer | Amith Yamasani <yamasani@google.com> | 2013-04-25 11:03:33 -0700 |
commit | 90dcd7469b7e776f508a0767b9db46005af0e8da (patch) | |
tree | 43b3717de75293d9fce83e9fc2aa36fbf7bca624 /src/com/android/settings/users | |
parent | d346a1ca2d78df4532bf103e150610a5dbc948ce (diff) | |
download | packages_apps_Settings-90dcd7469b7e776f508a0767b9db46005af0e8da.tar.gz packages_apps_Settings-90dcd7469b7e776f508a0767b9db46005af0e8da.tar.bz2 packages_apps_Settings-90dcd7469b7e776f508a0767b9db46005af0e8da.zip |
Disabled apps should also be shown in restricted profiles app list
If we don't show disabled system apps for toggling, they'll end up
being automatically included in the restricted profile.
Make sure that we also list disabled apps.
Bug: 8713202
Change-Id: I8f2facf496f669dfe963cdabf3d29d393097a80b
Diffstat (limited to 'src/com/android/settings/users')
-rw-r--r-- | src/com/android/settings/users/AppRestrictionsFragment.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/settings/users/AppRestrictionsFragment.java b/src/com/android/settings/users/AppRestrictionsFragment.java index 9f64b71d9..608421469 100644 --- a/src/com/android/settings/users/AppRestrictionsFragment.java +++ b/src/com/android/settings/users/AppRestrictionsFragment.java @@ -350,7 +350,8 @@ public class AppRestrictionsFragment extends SettingsPreferenceFragment implemen private void addSystemApps(List<SelectableAppInfo> visibleApps, Intent intent) { if (getActivity() == null) return; final PackageManager pm = getActivity().getPackageManager(); - List<ResolveInfo> launchableApps = pm.queryIntentActivities(intent, 0); + List<ResolveInfo> launchableApps = pm.queryIntentActivities(intent, + PackageManager.GET_DISABLED_COMPONENTS); for (ResolveInfo app : launchableApps) { if (app.activityInfo != null && app.activityInfo.applicationInfo != null) { int flags = app.activityInfo.applicationInfo.flags; |