summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorClark Scheff <clark@cyngn.com>2014-05-16 15:40:01 -0700
committerClark Scheff <clark@cyngn.com>2014-05-16 15:43:00 -0700
commit13b9a546c7dee1ca588ef7cbb2f643df85f8f0a0 (patch)
tree49c4e33c70d55576f4e459e9fb027ebdb0eedcdd /src
parentdda7d285c2b77770d09ad2abaf4fa09f909d4636 (diff)
downloadandroid_packages_providers_ThemesProvider-13b9a546c7dee1ca588ef7cbb2f643df85f8f0a0.zip
android_packages_providers_ThemesProvider-13b9a546c7dee1ca588ef7cbb2f643df85f8f0a0.tar.gz
android_packages_providers_ThemesProvider-13b9a546c7dee1ca588ef7cbb2f643df85f8f0a0.tar.bz2
Listen for ACTION_PACKAGE_BEING_REMOVED
Requires http://review.cyanogenmod.org/#/c/64139/ This will allow us to handle changing back to the default theme for any components that are using the package about to be removed. Some apps may crash if the them resources are removed before we change the theme back. Change-Id: If1778ea4dd3be86af21479f12e75d22083e168ef
Diffstat (limited to 'src')
-rw-r--r--src/org/cyanogenmod/themes/provider/AppReceiver.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/cyanogenmod/themes/provider/AppReceiver.java b/src/org/cyanogenmod/themes/provider/AppReceiver.java
index 1a0835e..881ac21 100644
--- a/src/org/cyanogenmod/themes/provider/AppReceiver.java
+++ b/src/org/cyanogenmod/themes/provider/AppReceiver.java
@@ -34,7 +34,7 @@ public class AppReceiver extends BroadcastReceiver {
try {
if (intent.getAction().equals(Intent.ACTION_PACKAGE_ADDED) && !isReplacing) {
ThemePackageHelper.insertPackage(context, pkgName);
- } else if (intent.getAction().equals(Intent.ACTION_PACKAGE_FULLY_REMOVED)) {
+ } else if (intent.getAction().equals(Intent.ACTION_PACKAGE_BEING_REMOVED)) {
ThemePackageHelper.removePackage(context, pkgName);
} else if (intent.getAction().equals(Intent.ACTION_PACKAGE_REPLACED)) {
ThemePackageHelper.updatePackage(context, pkgName);