summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndy Mast <andy@cyngn.com>2014-06-05 10:54:43 -0700
committerAndy Mast <andy@cyngn.com>2014-06-05 11:08:21 -0700
commitd18ad8f6953f66e7df637abad2f54a8e6bfe8dd5 (patch)
tree09d8018bde274f2d6af2969f3781a43c0647b3d9 /src
parent71cd2fbaa9153fb7bd420974ef163cfe9978cf75 (diff)
downloadandroid_packages_providers_ThemesProvider-d18ad8f6953f66e7df637abad2f54a8e6bfe8dd5.zip
android_packages_providers_ThemesProvider-d18ad8f6953f66e7df637abad2f54a8e6bfe8dd5.tar.gz
android_packages_providers_ThemesProvider-d18ad8f6953f66e7df637abad2f54a8e6bfe8dd5.tar.bz2
When applied theme is removed, revert to default
Fixes issue where fonts and other resources do not get reverted properly when an applied theme is uninstalled. Change-Id: I30c9ea018f8bffc6aff51c5b38ff1e4ec82b7b20
Diffstat (limited to 'src')
-rw-r--r--src/org/cyanogenmod/themes/provider/ThemePackageHelper.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/cyanogenmod/themes/provider/ThemePackageHelper.java b/src/org/cyanogenmod/themes/provider/ThemePackageHelper.java
index 74e4aa6..aabab9d 100644
--- a/src/org/cyanogenmod/themes/provider/ThemePackageHelper.java
+++ b/src/org/cyanogenmod/themes/provider/ThemePackageHelper.java
@@ -254,8 +254,9 @@ public class ThemePackageHelper {
moveToDefault.add(component);
}
}
+ String pkgName = ThemeUtils.getDefaultThemePackageName(context);
ThemeManager manager = (ThemeManager) context.getSystemService(Context.THEME_SERVICE);
- manager.requestThemeChange("default", moveToDefault);
+ manager.requestThemeChange(pkgName, moveToDefault);
// Delete the theme from the db
String selection = ThemesColumns.PKG_NAME + "= ?";