diff options
author | Clark Scheff <clark@cyngn.com> | 2014-06-26 15:46:39 -0700 |
---|---|---|
committer | Clark Scheff <clark@cyngn.com> | 2014-06-26 15:46:39 -0700 |
commit | 9648558e6bbb521ccc1411855c52e0f2c7c7afe8 (patch) | |
tree | a81de17f077e9206ab3c5b1d40bd3ef0f6b09f37 | |
parent | 92f77e77e097e59f9ec8d7bc64324f1987230af6 (diff) | |
download | android_packages_providers_ThemesProvider-9648558e6bbb521ccc1411855c52e0f2c7c7afe8.tar.gz android_packages_providers_ThemesProvider-9648558e6bbb521ccc1411855c52e0f2c7c7afe8.tar.bz2 android_packages_providers_ThemesProvider-9648558e6bbb521ccc1411855c52e0f2c7c7afe8.zip |
Define reapply delay as a constant
Change-Id: Ifc606b5ca07efeaef428edb7bd464cabcbe5c474
-rw-r--r-- | src/org/cyanogenmod/themes/provider/ThemePackageHelper.java | 4 |
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); } } |