summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/SetupWizardUtils.java
diff options
context:
space:
mode:
authorMaurice Lam <yukl@google.com>2014-11-25 19:25:56 -0800
committerMaurice Lam <yukl@google.com>2014-12-01 16:18:27 -0800
commit6b19fa9017800b94c75238339a337fd8f6c3e808 (patch)
treed3173e4dd1cf5b45a148a913b66c51bf1bb8b431 /src/com/android/settings/SetupWizardUtils.java
parentc868f7035a6d05332b3d8afcde2ae27ad0413e79 (diff)
downloadpackages_apps_Settings-6b19fa9017800b94c75238339a337fd8f6c3e808.zip
packages_apps_Settings-6b19fa9017800b94c75238339a337fd8f6c3e808.tar.gz
packages_apps_Settings-6b19fa9017800b94c75238339a337fd8f6c3e808.tar.bz2
[FRP] Theming for Pattern and Password screens
Basic theming for pattern and password screens. Create subclasses for ChooseLockPassword and ChooseLockPattern, and copied their XML layouts. This CL mainly uses the buttons in the original screens as-is, with a follow-up CL coming to change to use the nav bar buttons. Bug: 18482708 Change-Id: I81751f781de633aff23fc68657589360007c235a
Diffstat (limited to 'src/com/android/settings/SetupWizardUtils.java')
-rw-r--r--src/com/android/settings/SetupWizardUtils.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/settings/SetupWizardUtils.java b/src/com/android/settings/SetupWizardUtils.java
index 48eb4b8..0f54e63 100644
--- a/src/com/android/settings/SetupWizardUtils.java
+++ b/src/com/android/settings/SetupWizardUtils.java
@@ -103,4 +103,10 @@ public class SetupWizardUtils {
public static void setHeaderText(Activity activity, CharSequence text) {
getHeader(activity).setText(text);
}
+
+ public static void copySetupExtras(Intent fromIntent, Intent toIntent) {
+ toIntent.putExtra(EXTRA_THEME, fromIntent.getStringExtra(EXTRA_THEME));
+ toIntent.putExtra(EXTRA_USE_IMMERSIVE_MODE,
+ fromIntent.getBooleanExtra(EXTRA_USE_IMMERSIVE_MODE, false));
+ }
}