From 5eb2a4d9be09951afc5b90eb37caf513c24a2b67 Mon Sep 17 00:00:00 2001 From: Austin Delgado Date: Tue, 1 Aug 2023 10:35:10 -0700 Subject: [PATCH] Fix BP content description when face is not recognized Test: Manual, verify correct string is announced by talkback Fixes: 293547981 Change-Id: I0c46ef24c09bb2972c05c503891eeb6fcb90357b --- .../systemui/biometrics/AuthBiometricFaceIconController.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/biometrics/AuthBiometricFaceIconController.kt b/packages/SystemUI/src/com/android/systemui/biometrics/AuthBiometricFaceIconController.kt index e60d4e10f957b..0c7d56f46530d 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(