diff options
author | Andy Mast <andy@cyngn.com> | 2014-11-20 12:05:49 -0800 |
---|---|---|
committer | Andy Mast <andy@cyngn.com> | 2014-11-20 23:10:19 +0000 |
commit | eef73540a20b0a470528f3342ca641536a203dde (patch) | |
tree | ffd2ba424db49e234f46e7a424896091f5df6de0 | |
parent | 956067d0dcb4c71a53cab7752cf45a20ee4e1d8d (diff) | |
download | android_frameworks_base-eef73540a20b0a470528f3342ca641536a203dde.tar.gz android_frameworks_base-eef73540a20b0a470528f3342ca641536a203dde.tar.bz2 android_frameworks_base-eef73540a20b0a470528f3342ca641536a203dde.zip |
Pass all theme apks to themeservice for processing
3rd party apps expect ACTION_THEME_RESOURCES_CACHED once a theme is installed
regardless of the contents of the theme.
Previously only packages with overlays were passed to the themeservice
for resource processing. The result was packages without overlays would
install and ACTION_THEME_RESOURCES_CACHED would never be broadcasted.
Change-Id: I7cf3f8267805ef2a0626b2690b708e7bbae46bcc
(cherry picked from commit a97c4f34606116d7607e6605a87da12f7e76e9ef)
-rw-r--r-- | services/java/com/android/server/pm/PackageManagerService.java | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/services/java/com/android/server/pm/PackageManagerService.java b/services/java/com/android/server/pm/PackageManagerService.java index c6a6c3890d6..1667ddea7f6 100644 --- a/services/java/com/android/server/pm/PackageManagerService.java +++ b/services/java/com/android/server/pm/PackageManagerService.java @@ -5554,13 +5554,15 @@ public class PackageManagerService extends IPackageManager.Stub { deletePackageLI(pkg.packageName, null, true, null, null, 0, null, false); return null; } - } else if (!isBootScan) { - // Pass this off to the ThemeService for processing - ThemeManager tm = - (ThemeManager) mContext.getSystemService(Context.THEME_SERVICE); - if (tm != null) { - tm.processThemeResources(pkg.packageName); - } + } + } + + if (!isBootScan && (pkg.mIsThemeApk || pkg.mIsLegacyThemeApk)) { + // Pass this off to the ThemeService for processing + ThemeManager tm = + (ThemeManager) mContext.getSystemService(Context.THEME_SERVICE); + if (tm != null) { + tm.processThemeResources(pkg.packageName); } } |