From a415ef573edb2280779cb657030a3ce37e06526b Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Sun, 14 Apr 2019 00:38:19 +0200 Subject: [PATCH] Show keyboard automatically --- .../java/com/beemdevelopment/aegis/ui/AuthActivity.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/main/java/com/beemdevelopment/aegis/ui/AuthActivity.java b/app/src/main/java/com/beemdevelopment/aegis/ui/AuthActivity.java index 3a46733ac5..18afb17114 100644 --- a/app/src/main/java/com/beemdevelopment/aegis/ui/AuthActivity.java +++ b/app/src/main/java/com/beemdevelopment/aegis/ui/AuthActivity.java @@ -7,6 +7,7 @@ import android.view.KeyEvent; import android.view.View; import android.view.ViewGroup; +import android.view.WindowManager; import android.view.inputmethod.EditorInfo; import android.widget.Button; import android.widget.EditText; @@ -109,6 +110,11 @@ public void onClick(View v) { trySlots(PasswordSlot.class, password); } }); + + if (_fingerHelper == null) { + _textPassword.requestFocus(); + getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE); + } } private void showError() {