Skip to content

Commit

Permalink
Show keyboard automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
ByteHamster committed Apr 14, 2019
1 parent 2a0daae commit a415ef5
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 a415ef5

Please sign in to comment.