From 1f22d2a31abc5fa8a2d97f1f506bb2c25c87a96b Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Fri, 7 Jan 2011 18:42:59 -0800 Subject: DO NOT MERGE Fix issue #3333958: Package Manager can sometimes mistakenly think... ...an app is disabled! Ouch. Change-Id: I45dc2beef4e413fd447d905632901fadd924cb6e --- core/java/android/content/pm/PackageParser.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'core/java/android/content') diff --git a/core/java/android/content/pm/PackageParser.java b/core/java/android/content/pm/PackageParser.java index ad74707..c8ca080 100644 --- a/core/java/android/content/pm/PackageParser.java +++ b/core/java/android/content/pm/PackageParser.java @@ -3086,7 +3086,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; } -- cgit v1.1