Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 804d0c9f authored by Kevin Chyn's avatar Kevin Chyn
Browse files

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
parent 5c8b722d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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