summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authord34d <clark@cyngn.com>2015-03-07 14:56:43 -0800
committerd34d <clark@cyngn.com>2015-03-07 14:56:43 -0800
commitcfbac9f8df5def4416f51c3cf7ef217b497c6402 (patch)
treebbb002fc7c2b44c16420d9ad51fb619221ed3748 /src
parentcebe7499dae7fc3e94f4b837d78ede6f350f592d (diff)
downloadandroid_packages_providers_ThemesProvider-cfbac9f8df5def4416f51c3cf7ef217b497c6402.zip
android_packages_providers_ThemesProvider-cfbac9f8df5def4416f51c3cf7ef217b497c6402.tar.gz
android_packages_providers_ThemesProvider-cfbac9f8df5def4416f51c3cf7ef217b497c6402.tar.bz2
Update target API on theme updates
If a theme is updated to support a different target API it was not being properly updated in the ThemesProvider and therefore labeled incorrectly in the theme chooser. Change-Id: Ie600570fa6193ddf74a65897c732dfee3472751b
Diffstat (limited to 'src')
-rw-r--r--src/org/cyanogenmod/themes/provider/ThemePackageHelper.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/org/cyanogenmod/themes/provider/ThemePackageHelper.java b/src/org/cyanogenmod/themes/provider/ThemePackageHelper.java
index 69f5ab2..43b313d 100644
--- a/src/org/cyanogenmod/themes/provider/ThemePackageHelper.java
+++ b/src/org/cyanogenmod/themes/provider/ThemePackageHelper.java
@@ -171,6 +171,7 @@ public class ThemePackageHelper {
ThemeUtils.getDefaultThemePackageName(context).equals(pi.packageName) ? 1 : 0);
values.put(ThemesColumns.LAST_UPDATE_TIME, pi.lastUpdateTime);
values.put(ThemesColumns.INSTALL_TIME, pi.firstInstallTime);
+ values.put(ThemesColumns.TARGET_API, pi.applicationInfo.targetSdkVersion);
values.put(ThemesColumns.INSTALL_STATE,
isProcessing ? InstallState.UPDATING : InstallState.INSTALLED);
@@ -204,6 +205,7 @@ public class ThemePackageHelper {
values.put(ThemesColumns.DATE_CREATED, System.currentTimeMillis());
values.put(ThemesColumns.LAST_UPDATE_TIME, pi.lastUpdateTime);
values.put(ThemesColumns.INSTALL_TIME, pi.firstInstallTime);
+ values.put(ThemesColumns.TARGET_API, pi.applicationInfo.targetSdkVersion);
values.put(ThemesColumns.INSTALL_STATE,
isProcessing ? InstallState.UPDATING : InstallState.INSTALLED);