From 2a6d4eea164479e07737a5bddf761c93c7f79962 Mon Sep 17 00:00:00 2001 From: Austin Delgado Date: Mon, 17 Jul 2023 13:53:17 -0700 Subject: Add new Face unlock retry talkback string Add new string when using face unlock with talkback to provide better guidance to user. Bug: 289163469 Test: Manual, verify expected string is spoken when bouncer face auth fails Change-Id: I6ff5b502da2f785ae8e798171c09c445a2308085 --- packages/SystemUI/res/values/strings.xml | 2 ++ .../android/systemui/statusbar/KeyguardIndicationController.java | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/res/values/strings.xml b/packages/SystemUI/res/values/strings.xml index 070748cb92f8..4d66bbeb3319 100644 --- a/packages/SystemUI/res/values/strings.xml +++ b/packages/SystemUI/res/values/strings.xml @@ -946,6 +946,8 @@ Swipe up to try again + + Swipe up to try Face Unlock again Unlock to use NFC diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java b/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java index b847fb6ded83..03c458918f4b 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java @@ -1002,7 +1002,13 @@ public class KeyguardIndicationController { return; // udfps affordance is highlighted, no need to show action to unlock } else if (mKeyguardUpdateMonitor.isFaceEnrolled() && !mKeyguardUpdateMonitor.getIsFaceAuthenticated()) { - String message = mContext.getString(R.string.keyguard_retry); + String message; + if (mAccessibilityManager.isEnabled() + || mAccessibilityManager.isTouchExplorationEnabled()) { + message = mContext.getString(R.string.accesssibility_keyguard_retry); + } else { + message = mContext.getString(R.string.keyguard_retry); + } mStatusBarKeyguardViewManager.setKeyguardMessage(message, mInitialTextColorState); } } else { -- cgit v1.2.3-59-g8ed1b