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

Commit 46b1bd83 authored by jackqdyulei's avatar jackqdyulei
Browse files

Fix the visibility for disabled apps in settings

Bug: 30770664
Test: Manual -
1. Disable one app
2. Go to Settings -> Apps -> menu -> App permissions
3. to check the visibility of that app.

Don't show disabled app in the PermissionAppsFragment.

Change-Id: I0d97f7011c13c9a78e988901285f10ca9e5b2cd8
(cherry picked from commit 92c2b41b)
parent 4b1e2d8d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -195,6 +195,10 @@ public final class PermissionAppsFragment extends PermissionsFrameFragment imple
                continue;
            }

            if (!app.getAppInfo().enabled) {
                continue;
            }

            String key = app.getKey();
            preferencesToRemove.remove(key);
            Preference existingPref = screen.findPreference(key);