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

Commit 43052367 authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

Handle new "disabled until used" mode.

We want these apps to still show up as normal apps,
not look like they have been disabled completely (entirely
gone) or by the user (listed separately as disabled).

Change-Id: Ib58ead274a74c6df3ee87c8db5f7d0652e37b9bd
parent 18b64f44
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -434,9 +434,11 @@ public class ApplicationsState {
        // Only the owner can see all apps.
        if (UserHandle.myUserId() == 0) {
            mRetrieveFlags = PackageManager.GET_UNINSTALLED_PACKAGES |
                    PackageManager.GET_DISABLED_COMPONENTS;
                    PackageManager.GET_DISABLED_COMPONENTS |
                    PackageManager.GET_DISABLED_UNTIL_USED_COMPONENTS;
        } else {
            mRetrieveFlags = PackageManager.GET_DISABLED_COMPONENTS;
            mRetrieveFlags = PackageManager.GET_DISABLED_COMPONENTS |
                    PackageManager.GET_DISABLED_UNTIL_USED_COMPONENTS;
        }

        /**