diff options
Diffstat (limited to 'src/com/android/settings/users/AppRestrictionsFragment.java')
-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 9f64b71..6084214 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; |