Merge pull request #55 from ByteHamster/focus-password

Show keyboard automatically
This commit is contained in:
Alexander Bakker 2019-04-14 15:57:00 +02:00 committed by GitHub
commit 791138ccab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,6 +7,7 @@ import android.os.Bundle;
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 class AuthActivity extends AegisActivity implements FingerprintUiHelper.C
trySlots(PasswordSlot.class, password);
}
});
if (_fingerHelper == null) {
_textPassword.requestFocus();
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE);
}
}
private void showError() {