From daaf8f8bc93209c6001f74bbfa94f0d3fe1e6968 Mon Sep 17 00:00:00 2001 From: Maurice Lam Date: Fri, 10 Mar 2017 15:31:30 -0800 Subject: [PATCH] Use GLIF theme for screen lock confirmation Theme the confirm password screen similar to setup wizard and screen lock enrollment flow, so that we can start showing it during setup wizard. The new layouts are called "internal" because it's supposed to be used only when another settings screen starts it. For external intents from CONFIRM_DEVICE_CREDENTIAL, the existing theme and layout are unchanged. Bug: 32373672 Test: Run ConfirmLockPasswordTest with `am instrument` Change-Id: Ib887a763a073e6e4b96264d08846827b2e5cbf52 --- AndroidManifest.xml | 8 +- res/layout-land/confirm_lock_pattern_internal.xml | 113 +++++++++++++++++++++ res/layout/confirm_lock_password_internal.xml | 98 ++++++++++++++++++ res/layout/confirm_lock_pattern_internal_base.xml | 112 ++++++++++++++++++++ res/values-sw600dp/aliases.xml | 1 + res/values/aliases.xml | 1 + .../ConfirmDeviceCredentialBaseActivity.java | 30 +++++- src/com/android/settings/ConfirmLockPassword.java | 40 ++++---- src/com/android/settings/ConfirmLockPattern.java | 39 +++---- .../android/settings/ConfirmLockPasswordTest.java | 67 ++++++++++++ 10 files changed, 466 insertions(+), 43 deletions(-) create mode 100644 res/layout-land/confirm_lock_pattern_internal.xml create mode 100644 res/layout/confirm_lock_password_internal.xml create mode 100644 res/layout/confirm_lock_pattern_internal_base.xml create mode 100644 tests/app/src/com/android/settings/ConfirmLockPasswordTest.java diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 26a5e10232..07d7ecc59f 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1572,11 +1572,11 @@ + android:theme="@style/SetupWizardTheme.Light"/> + android:theme="@style/SetupWizardTheme.Light"/> + android:theme="@style/SetupWizardTheme.Light"/> + android:theme="@style/SetupWizardTheme.Light"/> + + + + + + + + + + + + + + + +