summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClark Scheff <clark@cyngn.com>2014-07-24 17:38:15 -0700
committerClark Scheff <clark@cyngn.com>2014-07-24 17:38:15 -0700
commit1ef4cda52c8a939dde1814abc1b50b22345ff1e8 (patch)
tree95e8d14e7709d5d3b7451fe212a0cc676034e810
parent407666af2fa59a893dba49703ece03208c3dbc71 (diff)
downloadpackages_apps_ThemeChooser-1ef4cda52c8a939dde1814abc1b50b22345ff1e8.zip
packages_apps_ThemeChooser-1ef4cda52c8a939dde1814abc1b50b22345ff1e8.tar.gz
packages_apps_ThemeChooser-1ef4cda52c8a939dde1814abc1b50b22345ff1e8.tar.bz2
Destroy the LOADER_ID_APPLIED in onLoadFinished.
This loader was being called several times during, and immediately after, a theme change causing the items in the additional cards to revert back to their previous setting. i.e. If you change the boot animation, apply the change, and then expand the card you would see the boot animation was back to the previous one even though the selector indicates that the current one is the one you just applied. Change-Id: I1125d9d1a7a82ef0c6f2b619e4fb5f02b0efc30e
-rw-r--r--src/org/cyanogenmod/theme/chooserv2/ThemeFragment.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/org/cyanogenmod/theme/chooserv2/ThemeFragment.java b/src/org/cyanogenmod/theme/chooserv2/ThemeFragment.java
index 4645fc1..8987081 100644
--- a/src/org/cyanogenmod/theme/chooserv2/ThemeFragment.java
+++ b/src/org/cyanogenmod/theme/chooserv2/ThemeFragment.java
@@ -1061,6 +1061,8 @@ public class ThemeFragment extends Fragment implements LoaderManager.LoaderCallb
case LOADER_ID_APPLIED:
getLoaderManager().initLoader(LOADER_ID_ALL, null, this);
populateCurrentTheme(c);
+ getLoaderManager().destroyLoader(LOADER_ID_APPLIED);
+ break;
}
}