fix to keyboard not opening on QuickUnlock screen, closes #1362

This commit is contained in:
Philipp Crocoll
2020-11-16 11:35:09 +01:00
parent ad4b719f3f
commit 612c7927e9
2 changed files with 4 additions and 3 deletions

View File

@@ -375,10 +375,11 @@ namespace keepass2android
EditText pwd = (EditText)FindViewById(Resource.Id.QuickUnlock_password);
pwd.PostDelayed(() =>
{
{
pwd.RequestFocus();
InputMethodManager keyboard = (InputMethodManager)GetSystemService(Context.InputMethodService);
if (showKeyboard)
keyboard.ShowSoftInput(pwd, 0);
keyboard.ShowSoftInput(pwd, ShowFlags.Implicit);
else
keyboard.HideSoftInputFromWindow(pwd.WindowToken, HideSoftInputFlags.ImplicitOnly);
}, 50);