diff options
author | Bharadwaj Narasimha <bnarasimha@cyngn.com> | 2016-07-21 16:52:32 -0700 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2016-07-25 10:44:44 -0700 |
commit | 16f02268e8d1242ac355f275f83c9f9b0a342950 (patch) | |
tree | f1fa61735958e6263b675f8ed1d14c1439db3a90 /cm | |
parent | 705716fc60c62d9036e8c8e804c4110231c804d9 (diff) | |
download | vendor_cmsdk-16f02268e8d1242ac355f275f83c9f9b0a342950.zip vendor_cmsdk-16f02268e8d1242ac355f275f83c9f9b0a342950.tar.gz vendor_cmsdk-16f02268e8d1242ac355f275f83c9f9b0a342950.tar.bz2 |
ThemeService:Component id is being changed for multiple entries in mixnmatch.
When a theme with more that one wallpaper is installed(Hexo), when
we set the wallpaper in other themes to the second and third wallpapers
of Hexo while using mixnmatch, some other components like icons,ringtones
overlays would also change its Component_id to the corresponding Component_id
of the wallpaper changed.
Change-Id: I16a0b9a69a329308927cecbe2385f51184c8f0ee
TICKET: CYNGNOS-3220
Diffstat (limited to 'cm')
-rw-r--r-- | cm/lib/main/java/org/cyanogenmod/platform/internal/ThemeManagerService.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cm/lib/main/java/org/cyanogenmod/platform/internal/ThemeManagerService.java b/cm/lib/main/java/org/cyanogenmod/platform/internal/ThemeManagerService.java index 2eaa441..08273e3 100644 --- a/cm/lib/main/java/org/cyanogenmod/platform/internal/ThemeManagerService.java +++ b/cm/lib/main/java/org/cyanogenmod/platform/internal/ThemeManagerService.java @@ -96,6 +96,9 @@ public class ThemeManagerService extends CMSystemService { private static final String TAG = ThemeManagerService.class.getName(); + //Constant to set Component_id in case of mismatch with mixnmatch_homescreen + private static final int DEFAULT_COMPONENT_ID = 0; + private static final boolean DEBUG = false; private static final String GOOGLE_SETUPWIZARD_PACKAGE = "com.google.android.setupwizard"; @@ -528,6 +531,8 @@ public class ThemeManagerService extends CMSystemService { // Add component ID for multiwallpaper if (ThemesColumns.MODIFIES_LAUNCHER.equals(component)) { values.put(MixnMatchColumns.COL_COMPONENT_ID, request.getWallpaperId()); + } else { + values.put(MixnMatchColumns.COL_COMPONENT_ID, DEFAULT_COMPONENT_ID); } mContext.getContentResolver().update(MixnMatchColumns.CONTENT_URI, values, where, |