summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorClark Scheff <clark@cyngn.com>2015-01-27 15:13:56 -0800
committerClark Scheff <clark@cyngn.com>2015-01-27 15:13:56 -0800
commitd9cb7a2235034aba5eeb76eb89238d0379239dcc (patch)
tree1a14a3245c13265e858e6ab7ea4ae14826d41d20 /src
parentd8da252a3299cba864508b5e398753404062f18a (diff)
downloadandroid_packages_providers_ThemesProvider-d9cb7a2235034aba5eeb76eb89238d0379239dcc.zip
android_packages_providers_ThemesProvider-d9cb7a2235034aba5eeb76eb89238d0379239dcc.tar.gz
android_packages_providers_ThemesProvider-d9cb7a2235034aba5eeb76eb89238d0379239dcc.tar.bz2
Remove theme from list of themes being processed
When we are updating a package that was previously being processed by the theme service, we were not removing the theme from the list in the shared preference which causes the provider to always call updatePackage. This can cause a call to the theme service to reapply the theme. Change-Id: I3a3e80f03f8c16e4804696374bf884ae7eef0011
Diffstat (limited to 'src')
-rw-r--r--src/org/cyanogenmod/themes/provider/AppReceiver.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/org/cyanogenmod/themes/provider/AppReceiver.java b/src/org/cyanogenmod/themes/provider/AppReceiver.java
index af9688b..fc9376f 100644
--- a/src/org/cyanogenmod/themes/provider/AppReceiver.java
+++ b/src/org/cyanogenmod/themes/provider/AppReceiver.java
@@ -71,6 +71,7 @@ public class AppReceiver extends BroadcastReceiver {
PreferenceUtils.getInstalledThemesBeingProcessed(context);
if (processingThemes != null &&
processingThemes.contains(themePkgName) && result >= 0) {
+ PreferenceUtils.removeThemeBeingProcessed(context, themePkgName);
if (themeExistsInProvider(context, themePkgName)) {
ThemePackageHelper.updatePackage(context, themePkgName);
} else {