summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Delgado <austindelgado@google.com>2023-08-01 22:30:30 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2023-08-01 22:30:30 +0000
commitf714ca7d6e037307aae78567d6ce93502d2b2689 (patch)
treef7c50b5ad2024434a0a8bf0a934987d6335fc526
parent6c8a4894696a680f8fe888bbac66fd6fb91fe96a (diff)
parent5eb2a4d9be09951afc5b90eb37caf513c24a2b67 (diff)
downloadbase-f714ca7d6e037307aae78567d6ce93502d2b2689.tar.gz
Merge "Fix BP content description when face is not recognized" into udc-d1-dev
-rw-r--r--packages/SystemUI/src/com/android/systemui/biometrics/AuthBiometricFaceIconController.kt3
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(