diff options
author | Maurice Lam <yukl@google.com> | 2015-11-16 15:07:34 -0800 |
---|---|---|
committer | Maurice Lam <yukl@google.com> | 2015-11-16 15:18:28 -0800 |
commit | 35cc29c9f307191962cd7124db14eb7b78c9407e (patch) | |
tree | 18818ed1d3a6eecc6b20d02a2edba6c91b64bba4 /library/main/src/com/android/setupwizardlib/util | |
parent | b29488505be15c3982283662f903cec53320b72f (diff) | |
download | setupwizard-35cc29c9f307191962cd7124db14eb7b78c9407e.tar.gz |
[SuwLib] Add GLIF theme
Add a GLIF theme declaration to setup wizard library, which is just
a direct copy of SuwThemeMaterial.Light for now, and will be updated
as more of the new visual design is implemented.
Bug: 25726515
Change-Id: I3f55662192c05012b9a93d77f7b1303f4a792fe5
Diffstat (limited to 'library/main/src/com/android/setupwizardlib/util')
-rw-r--r-- | library/main/src/com/android/setupwizardlib/util/WizardManagerHelper.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/library/main/src/com/android/setupwizardlib/util/WizardManagerHelper.java b/library/main/src/com/android/setupwizardlib/util/WizardManagerHelper.java index 778e0dc..62339fc 100644 --- a/library/main/src/com/android/setupwizardlib/util/WizardManagerHelper.java +++ b/library/main/src/com/android/setupwizardlib/util/WizardManagerHelper.java @@ -28,7 +28,7 @@ public class WizardManagerHelper { /* * EXTRA_SCRIPT_URI and EXTRA_ACTION_ID will be removed once all outstanding references have - * transitioned to using {@link #EXTRA_WIZARD_BUNDLE} + * transitioned to using EXTRA_WIZARD_BUNDLE. */ @Deprecated private static final String EXTRA_SCRIPT_URI = "scriptUri"; @@ -65,6 +65,12 @@ public class WizardManagerHelper { public static final String THEME_MATERIAL_BLUE_LIGHT = "material_blue_light"; /** + * Passed in a setup wizard intent as {@link #EXTRA_THEME}. This is the default theme used in + * setup wizard for NYC. + */ + public static final String THEME_GLIF_LIGHT = "glif_light"; + + /** * Get an intent that will invoke the next step of setup wizard. * * @param originalIntent The original intent that was used to start the step, usually via @@ -190,7 +196,7 @@ public class WizardManagerHelper { */ public static boolean isLightTheme(String theme, boolean def) { if (THEME_HOLO_LIGHT.equals(theme) || THEME_MATERIAL_LIGHT.equals(theme) - || THEME_MATERIAL_BLUE_LIGHT.equals(theme)) { + || THEME_MATERIAL_BLUE_LIGHT.equals(theme) || THEME_GLIF_LIGHT.equals(theme)) { return true; } else if (THEME_HOLO.equals(theme) || THEME_MATERIAL.equals(theme) || THEME_MATERIAL_BLUE.equals(theme)) { |