From a84c0e39d38759c9e8c8f08b2605a3a2597b7be7 Mon Sep 17 00:00:00 2001 From: Alex Stetson Date: Wed, 22 Mar 2023 13:58:12 -0700 Subject: [PATCH] Clear and re-focus pin password entry field Under certain conditions, this field can enter an unpredictable state where it's not focused but the request focus call fails because the focus flag is set. By clearing the focus before re-requesting, a fully focused state can be guaranteed. Bug: 263440452 Test: atest android.appsecurity.cts.DirectBootHostTest#testDirectBootNative Change-Id: Ib8f0de99abbf99cdbed4c3228c44ee3db105f952 --- .../keyguard/KeyguardPinBasedInputViewController.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardPinBasedInputViewController.java b/packages/SystemUI/src/com/android/keyguard/KeyguardPinBasedInputViewController.java index 559db76748ed2..ded1238742fbb 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardPinBasedInputViewController.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardPinBasedInputViewController.java @@ -127,6 +127,11 @@ public abstract class KeyguardPinBasedInputViewController