summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authord34d <clark@cyngn.com>2015-05-06 16:18:13 (GMT)
committerClark Scheff <clark@cyngn.com>2015-05-07 20:47:06 (GMT)
commit350f6f93fa3c49bf5ea23de5369b920c5fc0785f (patch)
treea1e2b6666bcf56b937f94f73e010c85a80c39eb5 /src
parent5c81d895cf31a45246351e8cfcfa7132a33c9cdb (diff)
downloadandroid_packages_providers_ThemesProvider-350f6f93fa3c49bf5ea23de5369b920c5fc0785f.zip
android_packages_providers_ThemesProvider-350f6f93fa3c49bf5ea23de5369b920c5fc0785f.tar.gz
android_packages_providers_ThemesProvider-350f6f93fa3c49bf5ea23de5369b920c5fc0785f.tar.bz2
Re-apply launcher icon packs on update
Change-Id: Ieab6c7b42ef3c7a3fe3357b745bdcdd9de0700f6
Diffstat (limited to 'src')
-rw-r--r--src/org/cyanogenmod/themes/provider/ThemePackageHelper.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/org/cyanogenmod/themes/provider/ThemePackageHelper.java b/src/org/cyanogenmod/themes/provider/ThemePackageHelper.java
index 93d1d58..3c4ddaf 100644
--- a/src/org/cyanogenmod/themes/provider/ThemePackageHelper.java
+++ b/src/org/cyanogenmod/themes/provider/ThemePackageHelper.java
@@ -210,7 +210,6 @@ public class ThemePackageHelper {
CharSequence labelName = pm.getApplicationLabel(pi.applicationInfo);
if (labelName == null) labelName = context.getString(R.string.unknown_app_name);
- boolean isPresentableTheme = ThemePackageHelper.isPresentableTheme(capabilities);
ContentValues values = new ContentValues();
values.put(ThemesColumns.PKG_NAME, pi.packageName);
values.put(ThemesColumns.TITLE, labelName.toString());
@@ -224,6 +223,11 @@ public class ThemePackageHelper {
String where = ThemesColumns.PKG_NAME + "=?";
String[] args = { pi.packageName };
context.getContentResolver().update(ThemesColumns.CONTENT_URI, values, where, args);
+
+ if (!isProcessing) {
+ // We should reapply any components that are currently applied for this theme.
+ reapplyInstalledComponentsForTheme(context, pi.packageName);
+ }
}
public static void removePackage(Context context, String pkgToRemove) {