From f97df931dfe7e6cb3925e3a465425bb016e1b6d9 Mon Sep 17 00:00:00 2001 From: Mill Chen Date: Fri, 5 Mar 2021 17:13:29 +0800 Subject: [PATCH] Update FingerprintEnrollFindSensor for landscape SUW library can support landscape mode. It reuse the portrait layout to render the screen for landscape. So we don't need to have a layout for it. This change is to move the description to a subtitle and remove the unused layout. Bug: 179234361 Bug: 171294253 Bug: 179317709 Test: visual verified Change-Id: Icfb3be799c1b4e190691731638aaa3467cadf624 --- .../fingerprint_enroll_find_sensor.xml | 108 ------------------ .../fingerprint_enroll_find_sensor_base.xml | 17 --- .../udfps_enroll_find_sensor_layout.xml | 25 ---- res/values/strings.xml | 4 +- .../FingerprintEnrollFindSensor.java | 8 +- 5 files changed, 10 insertions(+), 152 deletions(-) delete mode 100644 res/layout-land/fingerprint_enroll_find_sensor.xml diff --git a/res/layout-land/fingerprint_enroll_find_sensor.xml b/res/layout-land/fingerprint_enroll_find_sensor.xml deleted file mode 100644 index 5d3e8513bfd..00000000000 --- a/res/layout-land/fingerprint_enroll_find_sensor.xml +++ /dev/null @@ -1,108 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/res/layout/fingerprint_enroll_find_sensor_base.xml b/res/layout/fingerprint_enroll_find_sensor_base.xml index ce3104f91bc..62203f71c81 100644 --- a/res/layout/fingerprint_enroll_find_sensor_base.xml +++ b/res/layout/fingerprint_enroll_find_sensor_base.xml @@ -29,23 +29,6 @@ android:clipToPadding="false" android:clipChildren="false"> - - - - - - - - - - - - - diff --git a/res/values/strings.xml b/res/values/strings.xml index 68030bf8d81..aeeffebdf8a 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -945,10 +945,12 @@ Cancel Touch the sensor + + Touch & hold the fingerprint icon It\u2019s on the back of your phone. Use your index finger. - It\u2019s on the screen. Look for the fingerprint with a glowing circle. + The fingerprint sensor is on your screen. Move your finger across the screen to find it. Illustration with device and fingerprint sensor location diff --git a/src/com/android/settings/biometrics/fingerprint/FingerprintEnrollFindSensor.java b/src/com/android/settings/biometrics/fingerprint/FingerprintEnrollFindSensor.java index 89cd4422636..094336a5c84 100644 --- a/src/com/android/settings/biometrics/fingerprint/FingerprintEnrollFindSensor.java +++ b/src/com/android/settings/biometrics/fingerprint/FingerprintEnrollFindSensor.java @@ -68,7 +68,13 @@ public class FingerprintEnrollFindSensor extends BiometricEnrollBase { .build() ); - setHeaderText(R.string.security_settings_fingerprint_enroll_find_sensor_title); + if (mCanAssumeUdfps) { + setHeaderText(R.string.security_settings_udfps_enroll_find_sensor_title); + setDescriptionText(R.string.security_settings_udfps_enroll_find_sensor_message); + } else { + setHeaderText(R.string.security_settings_fingerprint_enroll_find_sensor_title); + setDescriptionText(R.string.security_settings_fingerprint_enroll_find_sensor_message); + } // This is an entry point for SetNewPasswordController, e.g. // adb shell am start -a android.app.action.SET_NEW_PASSWORD