summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClark Scheff <clark@cyngn.com>2014-08-21 13:51:08 -0700
committerClark Scheff <clark@cyngn.com>2014-08-22 09:38:00 -0700
commit9202d9802ab35d642f7ce1b0ac14ff51f8c2fb97 (patch)
treec5667967eb9032433c700317ca20bd69bce85233
parent01ac1c0658de03792b89317e7b2241fc49c82175 (diff)
downloadpackages_apps_ThemeChooser-9202d9802ab35d642f7ce1b0ac14ff51f8c2fb97.zip
packages_apps_ThemeChooser-9202d9802ab35d642f7ce1b0ac14ff51f8c2fb97.tar.gz
packages_apps_ThemeChooser-9202d9802ab35d642f7ce1b0ac14ff51f8c2fb97.tar.bz2
Show preivous theme card when resuming.
Change-Id: Ia1f0c65b24fca145ade466c716591d9c14dfb8e2
-rw-r--r--src/com/cyngn/theme/chooser/ChooserActivity.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/com/cyngn/theme/chooser/ChooserActivity.java b/src/com/cyngn/theme/chooser/ChooserActivity.java
index a00f283..2a85341 100644
--- a/src/com/cyngn/theme/chooser/ChooserActivity.java
+++ b/src/com/cyngn/theme/chooser/ChooserActivity.java
@@ -252,8 +252,6 @@ public class ChooserActivity extends FragmentActivity
mPager.setAdapter(mAdapter);
getSupportLoaderManager().restartLoader(LOADER_ID_INSTALLED_THEMES, null, this);
}
- } else {
- mSelectedTheme = null;
}
}
@@ -472,6 +470,7 @@ public class ChooserActivity extends FragmentActivity
super.onPause();
mService.onClientPaused(this);
unregisterReceiver(mWallpaperChangeReceiver);
+ mSelectedTheme = getCurrentFragment().getThemePackageName();
}
@Override