summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorClark Scheff <clark@cyngn.com>2014-06-26 15:46:39 -0700
committerClark Scheff <clark@cyngn.com>2014-06-26 15:46:39 -0700
commit9648558e6bbb521ccc1411855c52e0f2c7c7afe8 (patch)
treea81de17f077e9206ab3c5b1d40bd3ef0f6b09f37 /src
parent92f77e77e097e59f9ec8d7bc64324f1987230af6 (diff)
downloadandroid_packages_providers_ThemesProvider-9648558e6bbb521ccc1411855c52e0f2c7c7afe8.zip
android_packages_providers_ThemesProvider-9648558e6bbb521ccc1411855c52e0f2c7c7afe8.tar.gz
android_packages_providers_ThemesProvider-9648558e6bbb521ccc1411855c52e0f2c7c7afe8.tar.bz2
Define reapply delay as a constant
Change-Id: Ifc606b5ca07efeaef428edb7bd464cabcbe5c474
Diffstat (limited to 'src')
-rw-r--r--src/org/cyanogenmod/themes/provider/ThemePackageHelper.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/org/cyanogenmod/themes/provider/ThemePackageHelper.java b/src/org/cyanogenmod/themes/provider/ThemePackageHelper.java
index 0406178..c9752d3 100644
--- a/src/org/cyanogenmod/themes/provider/ThemePackageHelper.java
+++ b/src/org/cyanogenmod/themes/provider/ThemePackageHelper.java
@@ -49,6 +49,8 @@ import static android.content.res.CustomTheme.HOLO_DEFAULT;
public class ThemePackageHelper {
public final static String TAG = ThemePackageHelper.class.getName();
+ private static final long REAPPLY_THEME_DELAY = 1000L;
+
// Maps the theme component to its folder name in assets.
public static HashMap<String, String> sComponentToFolderName = new HashMap<String, String>();
static {
@@ -170,7 +172,7 @@ public class ThemePackageHelper {
// We should reapply any components that are currently applied for this theme.
reapplyInstalledComponentsForTheme(context, pkgName);
}
- }, 500);
+ }, REAPPLY_THEME_DELAY);
}
}