summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorClark Scheff <clark@cyngn.com>2015-01-07 15:56:30 -0800
committerClark Scheff <clark@cyngn.com>2015-01-07 15:56:30 -0800
commit970cef0cc092f486dacbce6afed8716be734c7bb (patch)
treec9f9ade3411d658c7683dc6ab32d43112de87924 /src
parent9b3aa31066d69f6801453a695736895cf891f89e (diff)
downloadpackages_apps_ThemeChooser-970cef0cc092f486dacbce6afed8716be734c7bb.zip
packages_apps_ThemeChooser-970cef0cc092f486dacbce6afed8716be734c7bb.tar.gz
packages_apps_ThemeChooser-970cef0cc092f486dacbce6afed8716be734c7bb.tar.bz2
Fix mix and match in MyThemeFragment
The map being returned from getComponentsToApply was setting the key as the value and the value as the key which causes no changes to be made when applying the theme. Change-Id: Ic4491d3c7c39ebef78717ab5cdfcd8d1e5759cc0
Diffstat (limited to 'src')
-rw-r--r--src/com/cyngn/theme/chooser/MyThemeFragment.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/cyngn/theme/chooser/MyThemeFragment.java b/src/com/cyngn/theme/chooser/MyThemeFragment.java
index 14aca3b..a7009d2 100644
--- a/src/com/cyngn/theme/chooser/MyThemeFragment.java
+++ b/src/com/cyngn/theme/chooser/MyThemeFragment.java
@@ -389,7 +389,7 @@ public class MyThemeFragment extends ThemeFragment {
String currentPkg = mCurrentTheme.get(component);
String selectedPkg = mSelectedComponentsMap.get(component);
if (selectedPkg != null && !currentPkg.equals(selectedPkg)) {
- componentsToApply.put(selectedPkg, component);
+ componentsToApply.put(component, selectedPkg);
}
}
return componentsToApply;