diff options
author | Austin Delgado <austindelgado@google.com> | 2023-08-01 10:35:10 -0700 |
---|---|---|
committer | Austin Delgado <austindelgado@google.com> | 2023-08-01 10:35:10 -0700 |
commit | 5eb2a4d9be09951afc5b90eb37caf513c24a2b67 (patch) | |
tree | b9f15b8e8d8d844de313e1e176d3e55d7891878d | |
parent | 7cc801a8d9791fcda6b90f63834eeaca45486e98 (diff) | |
download | base-5eb2a4d9be09951afc5b90eb37caf513c24a2b67.tar.gz |
Fix BP content description when face is not recognized
Test: Manual, verify correct string is announced by talkback
Fixes: 293547981
Change-Id: I0c46ef24c09bb2972c05c503891eeb6fcb90357b
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/biometrics/AuthBiometricFaceIconController.kt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/biometrics/AuthBiometricFaceIconController.kt b/packages/SystemUI/src/com/android/systemui/biometrics/AuthBiometricFaceIconController.kt index e60d4e10f957..0c7d56f46530 100644 --- a/packages/SystemUI/src/com/android/systemui/biometrics/AuthBiometricFaceIconController.kt +++ b/packages/SystemUI/src/com/android/systemui/biometrics/AuthBiometricFaceIconController.kt @@ -100,6 +100,9 @@ class AuthBiometricFaceIconController( ) } else if (newState == STATE_ERROR && oldState != STATE_ERROR) { animateIconOnce(R.drawable.face_dialog_dark_to_error) + iconView.contentDescription = context.getString( + R.string.keyguard_face_failed + ) } else if (oldState == STATE_AUTHENTICATING && newState == STATE_AUTHENTICATED) { animateIconOnce(R.drawable.face_dialog_dark_to_checkmark) iconView.contentDescription = context.getString( |