am 0cb93523
: Merge "Revert "Disabled apps should also be shown in restricted profiles app list"" into jb-mr2-dev
* commit '0cb93523b261c8779119ffa1cd7a45cf2d6b3814': Revert "Disabled apps should also be shown in restricted profiles app list"
This commit is contained in:
@@ -350,8 +350,7 @@ 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,
|
||||
PackageManager.GET_DISABLED_COMPONENTS);
|
||||
List<ResolveInfo> launchableApps = pm.queryIntentActivities(intent, 0);
|
||||
for (ResolveInfo app : launchableApps) {
|
||||
if (app.activityInfo != null && app.activityInfo.applicationInfo != null) {
|
||||
int flags = app.activityInfo.applicationInfo.flags;
|
||||
|
Reference in New Issue
Block a user