Skip to content

Commit

Permalink
Merge pull request beemdevelopment#55 from ByteHamster/focus-password
Browse files Browse the repository at this point in the history
Show keyboard automatically
  • Loading branch information
alexbakker authored Apr 14, 2019
2 parents 6cbef27 + a415ef5 commit 791138c
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 791138c

Please sign in to comment.