From 13b9a546c7dee1ca588ef7cbb2f643df85f8f0a0 Mon Sep 17 00:00:00 2001 From: Clark Scheff Date: Fri, 16 May 2014 15:40:01 -0700 Subject: 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 --- src/org/cyanogenmod/themes/provider/AppReceiver.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3