summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorScott Mertz <scott@cyngn.com>2015-02-19 16:37:06 -0800
committerScott Mertz <scott@cyngn.com>2015-02-19 16:37:06 -0800
commitfe573ef79b3c5043bcee92d8db3735f7820512b6 (patch)
treeaf77445186a511e682ca86183e4056c9c76163b4 /src
parent09d05e989732315b99a5e634c39643b99e20ff5f (diff)
downloadandroid_packages_providers_ThemesProvider-fe573ef79b3c5043bcee92d8db3735f7820512b6.zip
android_packages_providers_ThemesProvider-fe573ef79b3c5043bcee92d8db3735f7820512b6.tar.gz
android_packages_providers_ThemesProvider-fe573ef79b3c5043bcee92d8db3735f7820512b6.tar.bz2
close cursors when through with them
Change-Id: I861b12ab595c80c5ee7c746f8e9402f9667ebbe7
Diffstat (limited to 'src')
-rw-r--r--src/org/cyanogenmod/themes/provider/ThemesProvider.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/org/cyanogenmod/themes/provider/ThemesProvider.java b/src/org/cyanogenmod/themes/provider/ThemesProvider.java
index b64eafe..503d703 100644
--- a/src/org/cyanogenmod/themes/provider/ThemesProvider.java
+++ b/src/org/cyanogenmod/themes/provider/ThemesProvider.java
@@ -512,6 +512,7 @@ public class ThemesProvider extends ContentProvider {
// will be the ones to insert into the provider
pmThemes.remove(pkgName);
}
+ current.close();
// Check currently applied components (fonts, wallpapers etc) and verify the theme is
// still installed. If it is not installed, set the component back to the default theme
@@ -530,6 +531,7 @@ public class ThemesProvider extends ContentProvider {
moveToDefault.add(component);
}
}
+ mixnmatch.close();
ThemeManager mService = (ThemeManager) getContext().getSystemService(
Context.THEME_SERVICE);
mService.requestThemeChange(SYSTEM_DEFAULT, moveToDefault);