summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorClark Scheff <clark@cyngn.com>2014-06-17 12:33:41 -0700
committerAndy Mast <andy@cyngn.com>2014-07-01 23:24:34 +0000
commit3378148542cd387b4559cb51d3a7c025fa24a0b7 (patch)
treea9bfa9ca92e4ab3c1e0551b77736559702ea180d /src
parentda02291592d45f83882a58eee4512ad227262efe (diff)
downloadandroid_packages_providers_ThemesProvider-3378148542cd387b4559cb51d3a7c025fa24a0b7.zip
android_packages_providers_ThemesProvider-3378148542cd387b4559cb51d3a7c025fa24a0b7.tar.gz
android_packages_providers_ThemesProvider-3378148542cd387b4559cb51d3a7c025fa24a0b7.tar.bz2
Modify config to support app specific themes [3/4]
See frameworks/base commit for full msg. This is just simple renaming. Change-Id: If7011a93d60197b2879028902f8e9a190bac147d
Diffstat (limited to 'src')
-rw-r--r--src/org/cyanogenmod/themes/provider/ThemePackageHelper.java2
-rw-r--r--src/org/cyanogenmod/themes/provider/ThemesOpenHelper.java6
-rw-r--r--src/org/cyanogenmod/themes/provider/ThemesProvider.java2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/org/cyanogenmod/themes/provider/ThemePackageHelper.java b/src/org/cyanogenmod/themes/provider/ThemePackageHelper.java
index f71ab31..0accb55 100644
--- a/src/org/cyanogenmod/themes/provider/ThemePackageHelper.java
+++ b/src/org/cyanogenmod/themes/provider/ThemePackageHelper.java
@@ -39,7 +39,7 @@ import java.util.LinkedList;
import java.util.List;
import java.util.Map;
-import static android.content.res.CustomTheme.HOLO_DEFAULT;
+import static android.content.res.ThemeConfig.HOLO_DEFAULT;
/**
* Helper class to populate the provider with info from the theme.
diff --git a/src/org/cyanogenmod/themes/provider/ThemesOpenHelper.java b/src/org/cyanogenmod/themes/provider/ThemesOpenHelper.java
index 6a0f54a..458deae 100644
--- a/src/org/cyanogenmod/themes/provider/ThemesOpenHelper.java
+++ b/src/org/cyanogenmod/themes/provider/ThemesOpenHelper.java
@@ -18,7 +18,7 @@ package org.cyanogenmod.themes.provider;
import android.content.ContentValues;
import android.content.Context;
import android.content.pm.ThemeUtils;
-import android.content.res.CustomTheme;
+import android.content.res.ThemeConfig;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteException;
import android.database.sqlite.SQLiteOpenHelper;
@@ -32,7 +32,7 @@ public class ThemesOpenHelper extends SQLiteOpenHelper {
private static final int DATABASE_VERSION = 5;
private static final String DATABASE_NAME = "themes.db";
- private static final String DEFAULT_PKG_NAME = CustomTheme.HOLO_DEFAULT;
+ private static final String DEFAULT_PKG_NAME = ThemeConfig.HOLO_DEFAULT;
private Context mContext;
@@ -221,7 +221,7 @@ public class ThemesOpenHelper extends SQLiteOpenHelper {
private static boolean isHoloDefault(Context context) {
// == is okay since we are checking if what is returned is the same constant string value
- return CustomTheme.HOLO_DEFAULT == ThemeUtils.getDefaultThemePackageName(context);
+ return ThemeConfig.HOLO_DEFAULT == ThemeUtils.getDefaultThemePackageName(context);
}
}
diff --git a/src/org/cyanogenmod/themes/provider/ThemesProvider.java b/src/org/cyanogenmod/themes/provider/ThemesProvider.java
index ba50d72..24c79bf 100644
--- a/src/org/cyanogenmod/themes/provider/ThemesProvider.java
+++ b/src/org/cyanogenmod/themes/provider/ThemesProvider.java
@@ -48,7 +48,7 @@ import java.util.LinkedList;
import java.util.List;
import java.util.Map;
-import static android.content.res.CustomTheme.HOLO_DEFAULT;
+import static android.content.res.ThemeConfig.HOLO_DEFAULT;
public class ThemesProvider extends ContentProvider {
private static final String TAG = ThemesProvider.class.getSimpleName();