summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorClark Scheff <clark@cyngn.com>2014-11-13 10:15:15 -0800
committerClark Scheff <clark@cyngn.com>2014-11-13 10:24:47 -0800
commit288cfc16e2a2e6e5ab1d91e1f57b3849a3f0c863 (patch)
tree11ca6e9cb409356f799286b666866bb0b8a36cfe /src/com
parent3b928813ef62168a1f7e2e40e028535d8bcaccfc (diff)
downloadpackages_apps_ThemeChooser-288cfc16e2a2e6e5ab1d91e1f57b3849a3f0c863.tar.gz
packages_apps_ThemeChooser-288cfc16e2a2e6e5ab1d91e1f57b3849a3f0c863.tar.bz2
packages_apps_ThemeChooser-288cfc16e2a2e6e5ab1d91e1f57b3849a3f0c863.zip
Don't add default wallpapers if external images are selected
External wallpapers are set from within the chooser and therefore not added to the components map. Because of this, if we add in the missing wallpaper from the default theme we will override this behavior and the user will not get their custom wallpaper. Change-Id: I8a897e6851039eaee502736bef98b93f827e952a REF: THEMES-420 and THEMES-421
Diffstat (limited to 'src/com')
-rw-r--r--src/com/cyngn/theme/chooser/ThemeFragment.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/com/cyngn/theme/chooser/ThemeFragment.java b/src/com/cyngn/theme/chooser/ThemeFragment.java
index 39c17e6..a2181d9 100644
--- a/src/com/cyngn/theme/chooser/ThemeFragment.java
+++ b/src/com/cyngn/theme/chooser/ThemeFragment.java
@@ -2098,6 +2098,14 @@ public class ThemeFragment extends Fragment implements LoaderManager.LoaderCallb
String component = entry.getKey();
String defaultPkg = entry.getValue();
if (!newMap.containsKey(component)) {
+ // Don't use default wallpaper or lockscreen wallpaper if an external image
+ // is suppose to be used.
+ if ((ThemesColumns.MODIFIES_LAUNCHER.equals(component) &&
+ mExternalWallpaperUri != null) ||
+ (ThemesColumns.MODIFIES_LOCKSCREEN.equals(component) &&
+ mExternalLockscreenUri != null)) {
+ continue;
+ }
newMap.put(component, defaultPkg);
}
}