summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Kevin Chyn <kchyn@google.com> 2020-01-23 10:42:20 -0800
committer Kevin Chyn <kchyn@google.com> 2020-01-23 10:42:20 -0800
commit804d0c9fda207a948a20aea1f2151d1cc14db956 (patch)
tree45217ec7d9dc22ba92505e0a18398a6007165c75
parent5c8b722dc5f696858a953251eb12268ce8c9e279 (diff)
Add a delay before requesting the IME
There seems to be some race condition that causes the IME to not show in some situations. Temporarily add a delay to work around this. Bug: 147794716 Test: BiometricPromptDemo with only password set up Change-Id: I34dae203acc6f256410103287cc4d5579a1eaeda
-rw-r--r--packages/SystemUI/src/com/android/systemui/biometrics/AuthCredentialPasswordView.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/biometrics/AuthCredentialPasswordView.java b/packages/SystemUI/src/com/android/systemui/biometrics/AuthCredentialPasswordView.java
index ccfd3a57811c..82c8a469a057 100644
--- a/packages/SystemUI/src/com/android/systemui/biometrics/AuthCredentialPasswordView.java
+++ b/packages/SystemUI/src/com/android/systemui/biometrics/AuthCredentialPasswordView.java
@@ -72,10 +72,10 @@ public class AuthCredentialPasswordView extends AuthCredentialView
}
// Wait a bit to focus the field so the focusable flag on the window is already set then.
- post(() -> {
+ postDelayed(() -> {
mPasswordField.requestFocus();
mImm.showSoftInput(mPasswordField, InputMethodManager.SHOW_IMPLICIT);
- });
+ }, 100);
}
@Override