summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorClark Scheff <clark@cyngn.com>2015-02-02 08:32:10 -0800
committerClark Scheff <clark@cyngn.com>2015-02-02 11:02:02 -0800
commitc3a7e1eb6ad76a99ec9ee64aead0cf29b695a49f (patch)
tree597cd2709bf8be4646b7c7da37c6ad5fdf650e5a /src
parent3e827929241d3339b77ed5f523f32dbd28d8b2a3 (diff)
downloadandroid_packages_providers_ThemesProvider-c3a7e1eb6ad76a99ec9ee64aead0cf29b695a49f.zip
android_packages_providers_ThemesProvider-c3a7e1eb6ad76a99ec9ee64aead0cf29b695a49f.tar.gz
android_packages_providers_ThemesProvider-c3a7e1eb6ad76a99ec9ee64aead0cf29b695a49f.tar.bz2
Reapply status bar and navbar overlays on update
If the status bar and/or navigation bar are using different overlays than those applied for the entire system, we need to reapply those as well. Change-Id: I68540bb30f8ba5248a5d8249357c20c966d917dd
Diffstat (limited to 'src')
-rw-r--r--src/org/cyanogenmod/themes/provider/ThemePackageHelper.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/org/cyanogenmod/themes/provider/ThemePackageHelper.java b/src/org/cyanogenmod/themes/provider/ThemePackageHelper.java
index 6be5570..a3437dd 100644
--- a/src/org/cyanogenmod/themes/provider/ThemePackageHelper.java
+++ b/src/org/cyanogenmod/themes/provider/ThemePackageHelper.java
@@ -39,6 +39,8 @@ import java.util.LinkedList;
import java.util.List;
import java.util.Map;
+import static android.content.res.ThemeConfig.SYSTEMUI_NAVBAR_PKG;
+import static android.content.res.ThemeConfig.SYSTEMUI_STATUS_BAR_PKG;
import static android.content.res.ThemeConfig.SYSTEM_DEFAULT;
/**
@@ -314,6 +316,12 @@ public class ThemePackageHelper {
if (pkgName.equals(themeConfig.getOverlayPkgName())) {
reApply.add(ThemesColumns.MODIFIES_OVERLAYS);
}
+ if (pkgName.equals(themeConfig.getOverlayPkgNameForApp(SYSTEMUI_STATUS_BAR_PKG))) {
+ reApply.add(ThemesColumns.MODIFIES_STATUS_BAR);
+ }
+ if (pkgName.equals(themeConfig.getOverlayPkgNameForApp(SYSTEMUI_NAVBAR_PKG))) {
+ reApply.add(ThemesColumns.MODIFIES_NAVIGATION_BAR);
+ }
ThemeManager manager = (ThemeManager) context.getSystemService(Context.THEME_SERVICE);
manager.requestThemeChange(pkgName, reApply);