Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 19576444 authored by Amith Yamasani's avatar Amith Yamasani Committed by Android Git Automerger
Browse files

am 90dcd746: Disabled apps should also be shown in restricted profiles app list

* commit '90dcd746':
  Disabled apps should also be shown in restricted profiles app list
parents d8e88735 90dcd746
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;