From 9d55295128aaa8cf4b8f3661b5602152824a109e Mon Sep 17 00:00:00 2001 From: Wenhui Yang Date: Tue, 21 Feb 2023 22:11:05 +0000 Subject: [PATCH] Fix the biometrics prompt talkback Fix the duplicate talkback focuses on fingerprint icon and change the talkback message per Kerry's suggestion Test: Manual - Open biometrics prompt and observe the duplicate focuses of decorative fingerprint icon has been removed and talkback announces the animation the same as the education during enrollment. Fixes: 267407905 Change-Id: Ib2683cbf7a0ca409002b576a7bbcf1fe41808ca7 --- packages/SystemUI/res/values/strings.xml | 8 ++++++-- .../biometrics/AuthBiometricFingerprintIconController.kt | 3 +-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/SystemUI/res/values/strings.xml b/packages/SystemUI/res/values/strings.xml index e6ac59e6b1067..5a68768ccc52e 100644 --- a/packages/SystemUI/res/values/strings.xml +++ b/packages/SystemUI/res/values/strings.xml @@ -405,8 +405,12 @@ Touch the fingerprint sensor - - Fingerprint icon + + The fingerprint sensor is on the power button. It’s the flat button next to the raised volume button on the edge of the tablet.\n\nPressing the power button turns off the screen. + + The fingerprint sensor is on the power button. It’s the flat button next to the raised volume button on the edge of the device.\n\nPressing the power button turns off the screen. + + The fingerprint sensor is on the power button. It’s the flat button next to the raised volume button on the edge of the phone.\n\nPressing the power button turns off the screen. Can\u2019t recognize face. Use fingerprint instead. diff --git a/packages/SystemUI/src/com/android/systemui/biometrics/AuthBiometricFingerprintIconController.kt b/packages/SystemUI/src/com/android/systemui/biometrics/AuthBiometricFingerprintIconController.kt index 3ea3cd1710627..4b5c50ff7fa5b 100644 --- a/packages/SystemUI/src/com/android/systemui/biometrics/AuthBiometricFingerprintIconController.kt +++ b/packages/SystemUI/src/com/android/systemui/biometrics/AuthBiometricFingerprintIconController.kt @@ -97,7 +97,6 @@ open class AuthBiometricFingerprintIconController( val iconContentDescription = getIconContentDescription(newState) if (iconContentDescription != null) { iconView.contentDescription = iconContentDescription - iconViewOverlay.contentDescription = iconContentDescription } iconView.frame = 0 @@ -152,7 +151,7 @@ open class AuthBiometricFingerprintIconController( STATE_AUTHENTICATING_ANIMATING_IN, STATE_AUTHENTICATING, STATE_PENDING_CONFIRMATION, - STATE_AUTHENTICATED -> R.string.accessibility_fingerprint_dialog_fingerprint_icon + STATE_AUTHENTICATED -> R.string.security_settings_sfps_enroll_find_sensor_message STATE_ERROR, STATE_HELP -> R.string.biometric_dialog_try_again else -> null