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

Commit 433863b1 authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

Fix issue #3333958: Package Manager can sometimes mistakenly think...

...an app is disabled!

Ouch.

Change-Id: I5788c5f8edfe2a0d6f4f0f3359e1742f8ed8d98e
parent cd23823d
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -3049,7 +3049,11 @@ public class PackageParser {
        if (!sCompatibilityModeEnabled) {
            ai.disableCompatibilityMode();
        }
        ai.enabled = p.mSetEnabled == PackageManager.COMPONENT_ENABLED_STATE_ENABLED;
        if (p.mSetEnabled == PackageManager.COMPONENT_ENABLED_STATE_ENABLED) {
            ai.enabled = true;
        } else if (p.mSetEnabled == PackageManager.COMPONENT_ENABLED_STATE_DISABLED) {
            ai.enabled = false;
        }
        return ai;
    }