Fix BP content description when face is not recognized

Test: Manual, verify correct string is announced by talkback
Fixes: 293547981
Change-Id: I0c46ef24c09bb2972c05c503891eeb6fcb90357b
This commit is contained in:
Austin Delgado
2023-08-01 10:35:10 -07:00
parent 7cc801a8d9
commit 5eb2a4d9be

View File

@@ -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(