summaryrefslogtreecommitdiffstats
path: root/src/com/cyngn/theme/chooser/ThemeFragment.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/cyngn/theme/chooser/ThemeFragment.java')
-rw-r--r--src/com/cyngn/theme/chooser/ThemeFragment.java12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/com/cyngn/theme/chooser/ThemeFragment.java b/src/com/cyngn/theme/chooser/ThemeFragment.java
index e6fcd9e..3cc229d 100644
--- a/src/com/cyngn/theme/chooser/ThemeFragment.java
+++ b/src/com/cyngn/theme/chooser/ThemeFragment.java
@@ -1972,9 +1972,11 @@ public class ThemeFragment extends Fragment implements LoaderManager.LoaderCallb
long selectedComponentId = (ThemesColumns.MODIFIES_LAUNCHER.equals(component)) ?
mSelectedWallpaperComponentId : DEFAULT_COMPONENT_ID;
String pkgName = mSelectedComponentsMap.get(component);
- if (component.equals(MODIFIES_LOCKSCREEN)
- && mSelectedComponentsMap.containsKey(MODIFIES_LIVE_LOCK_SCREEN)) {
- pkgName = mSelectedComponentsMap.get(MODIFIES_LIVE_LOCK_SCREEN);
+ if (component.equals(MODIFIES_LOCKSCREEN) && TextUtils.isEmpty(pkgName)) {
+ String liveLockScreenPkg = mSelectedComponentsMap.get(MODIFIES_LIVE_LOCK_SCREEN);
+ if (liveLockScreenPkg != null) {
+ pkgName = liveLockScreenPkg;
+ }
}
getChooserActivity().showComponentSelector(component, pkgName, selectedComponentId, v);
fadeOutNonSelectedCards(mActiveCardId);
@@ -2673,6 +2675,10 @@ public class ThemeFragment extends Fragment implements LoaderManager.LoaderCallb
scrollAnimator.start();
}
+ public Map<String, String> getSelectedComponentsMap() {
+ return mSelectedComponentsMap;
+ }
+
/**
* Slides the scrollview content down and removes a space view at the bottom
* of mAdditionalCards.