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
This commit is contained in:
parent
705716fc60
commit
16f02268e8
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue