From c0f0b0ca1a3bc45ffe9d66c374289531e3bad81a Mon Sep 17 00:00:00 2001 From: Jason Chang Date: Thu, 15 Jun 2023 16:09:06 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20the=20=E2=80=9Cscreen=20lock=20option?= =?UTF-8?q?=E2=80=9D=20and=20password=20restriction=20view=20are=20in=20th?= =?UTF-8?q?e=20wrong=20position=20on=20PIN/Password/Pattern=20in=20the=20l?= =?UTF-8?q?andscape=20mode.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. Move the description position under the GlifLayout header 2. Move the position "Screen lock options" button under the GlifLayout header Bug: 272676038 Bug: 285271342 Test: manully test with reproducible steps: STEPS TO REPRODUCE: 1. Go through the setup flow 2. Continue steps until “set pin” page 3. The “screen lock option” is in the wrong position Test: make RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings .password.SetupChooseLockPasswordTest" Change-Id: I24464e6b7e93f20abbeb59426919ed7fec5c7cbb --- .../choose_lock_pattern_common.xml | 9 ----- res/layout/choose_lock_password.xml | 14 -------- res/layout/choose_lock_pattern_common.xml | 8 ----- res/values/dimens.xml | 9 +++++ res/values/ids.xml | 4 +++ res/values/styles.xml | 6 ++++ .../settings/password/ChooseLockPassword.java | 34 ++++++++++++++++--- .../password/PasswordRequirementAdapter.java | 13 +++++-- .../settings/password/PasswordUtils.java | 27 +++++++++++++++ .../password/SetupChooseLockPassword.java | 6 +++- .../password/SetupChooseLockPattern.java | 6 +++- .../password/SetupChooseLockPasswordTest.java | 15 ++++++++ 12 files changed, 112 insertions(+), 39 deletions(-) diff --git a/res/layout-land/choose_lock_pattern_common.xml b/res/layout-land/choose_lock_pattern_common.xml index 2913c5a8166..e4404615127 100644 --- a/res/layout-land/choose_lock_pattern_common.xml +++ b/res/layout-land/choose_lock_pattern_common.xml @@ -38,15 +38,6 @@ android:paddingRight="0dp" android:paddingBottom="0dp"> - -