From 9a4f0d2c6cb2de74f8ea50d7ba73567600f7b566 Mon Sep 17 00:00:00 2001 From: Kevin Chyn Date: Thu, 13 May 2021 11:04:08 -0700 Subject: [PATCH 1/2] Update a few more strings 1) Fingerprint intro page footer buttons 2) Screen lock removal positive button 3) Update UDFPS string logic 4) Update UDFPS strings during enrollment 5) Update generic fingerprint enroll completion message Bug: 187868985 Test: manually, in settings and SUW Change-Id: Iddcc0a65c3f410b4ae33a760dfcc57aba4bcc7f9 --- res/values/strings.xml | 14 +++++++------- .../fingerprint/FingerprintEnrollEnrolling.java | 15 +++++++++++++-- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index a48ff772249..cb53354aede 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -914,11 +914,11 @@ No thanks - Skip + No thanks Continue - Agree + I agree Skip @@ -1027,21 +1027,21 @@ Put your finger on the sensor and lift after you feel a vibration - Each time you touch, keep your finger on the icon until you feel a vibration + Keep your finger on the icon until you feel a vibration Lift, then touch again One more time - Touch the fingerprint icon as it moves + Follow the fingerprint icon Keep lifting your finger to add the different parts of your fingerprint - This helps capture your full fingerprint + Touch & hold each time the icon moves. This helps capture your full fingerprint. Fingerprint added - When you see this icon, use your fingerprint for identification or to approve purchases + Now you can use your fingerprint to unlock your phone or for authentication, like when you sign in to apps Do it later @@ -1501,7 +1501,7 @@ "Device protection features will not work without your screen lock.\n\nThis deletes the fingerprint model stored on your device. Your face model will also be permanently and securely deleted. You won\u2019t be able to use your face or fingerprint for authentication in apps." - Yes, remove + Delete Change unlock pattern diff --git a/src/com/android/settings/biometrics/fingerprint/FingerprintEnrollEnrolling.java b/src/com/android/settings/biometrics/fingerprint/FingerprintEnrollEnrolling.java index 1ad34ba7cfa..6bdd3f7ddd1 100644 --- a/src/com/android/settings/biometrics/fingerprint/FingerprintEnrollEnrolling.java +++ b/src/com/android/settings/biometrics/fingerprint/FingerprintEnrollEnrolling.java @@ -52,6 +52,7 @@ import com.android.settings.core.instrumentation.InstrumentedDialogFragment; import com.google.android.setupcompat.template.FooterBarMixin; import com.google.android.setupcompat.template.FooterButton; +import com.google.android.setupcompat.util.WizardManagerHelper; import java.util.List; @@ -109,6 +110,7 @@ public class FingerprintEnrollEnrolling extends BiometricsEnrollEnrolling { @Nullable private AnimatedVectorDrawable mIconBackgroundBlinksDrawable; private boolean mRestoring; private Vibrator mVibrator; + private boolean mIsSetupWizard; @Override protected void onCreate(Bundle savedInstanceState) { @@ -131,7 +133,12 @@ public class FingerprintEnrollEnrolling extends BiometricsEnrollEnrolling { setDescriptionText(R.string.security_settings_fingerprint_enroll_start_message); } - setHeaderText(R.string.security_settings_fingerprint_enroll_repeat_title); + mIsSetupWizard = WizardManagerHelper.isAnySetupWizard(getIntent()); + if (mCanAssumeUdfps && !mIsSetupWizard) { + setHeaderText(R.string.security_settings_udfps_enroll_find_sensor_title); + } else { + setHeaderText(R.string.security_settings_fingerprint_enroll_repeat_title); + } mErrorText = findViewById(R.id.error_text); mProgressBar = findViewById(R.id.fingerprint_progress_bar); @@ -280,7 +287,11 @@ public class FingerprintEnrollEnrolling extends BiometricsEnrollEnrolling { setDescriptionText(R.string.security_settings_fingerprint_enroll_start_message); } } else if (mCanAssumeUdfps && !isCenterEnrollmentComplete()) { - setHeaderText(R.string.security_settings_udfps_enroll_title_one_more_time); + if (mIsSetupWizard) { + setHeaderText(R.string.security_settings_udfps_enroll_title_one_more_time); + } else { + setHeaderText(R.string.security_settings_fingerprint_enroll_repeat_title); + } setDescriptionText(R.string.security_settings_udfps_enroll_start_message); } else { if (mCanAssumeUdfps) { From 6a43df985517c4698fb000d39fa67eb3d440d0af Mon Sep 17 00:00:00 2001 From: Kevin Chyn Date: Thu, 13 May 2021 12:30:48 -0700 Subject: [PATCH 2/2] Update UDFPS "find sensor" string for a11y Bug: 187999176 Test: manual Change-Id: I9dea35a70aba87f5f2cc94fc73e74a5a624019b9 --- res/values/strings.xml | 4 +++- .../biometrics/fingerprint/FingerprintEnrollFindSensor.java | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index cb53354aede..b3dd343ab1d 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -1013,7 +1013,9 @@ It\u2019s on the back of your phone. Use your index finger. - The fingerprint sensor is on your screen. Move your finger across the screen to find it. + The fingerprint sensor is on your screen + + The fingerprint sensor is on your screen. Move your finger across the screen to find the sensor. 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 db03a3d1efc..c7500e8e300 100644 --- a/src/com/android/settings/biometrics/fingerprint/FingerprintEnrollFindSensor.java +++ b/src/com/android/settings/biometrics/fingerprint/FingerprintEnrollFindSensor.java @@ -72,6 +72,8 @@ public class FingerprintEnrollFindSensor extends BiometricEnrollBase implements if (mCanAssumeUdfps) { setHeaderText(R.string.security_settings_udfps_enroll_find_sensor_title); setDescriptionText(R.string.security_settings_udfps_enroll_find_sensor_message); + final CharSequence description = getString(R.string.security_settings_udfps_enroll_find_sensor_a11y); + getLayout().getDescriptionTextView().setContentDescription(description); } else { setHeaderText(R.string.security_settings_fingerprint_enroll_find_sensor_title); setDescriptionText(R.string.security_settings_fingerprint_enroll_find_sensor_message);