mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-04-28 09:38:09 +00:00
Merge pull request #55 from ByteHamster/focus-password
Show keyboard automatically
This commit is contained in:
commit
791138ccab
1 changed files with 6 additions and 0 deletions
|
@ -7,6 +7,7 @@ import android.os.Bundle;
|
||||||
import android.view.KeyEvent;
|
import android.view.KeyEvent;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
|
import android.view.WindowManager;
|
||||||
import android.view.inputmethod.EditorInfo;
|
import android.view.inputmethod.EditorInfo;
|
||||||
import android.widget.Button;
|
import android.widget.Button;
|
||||||
import android.widget.EditText;
|
import android.widget.EditText;
|
||||||
|
@ -109,6 +110,11 @@ public class AuthActivity extends AegisActivity implements FingerprintUiHelper.C
|
||||||
trySlots(PasswordSlot.class, password);
|
trySlots(PasswordSlot.class, password);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (_fingerHelper == null) {
|
||||||
|
_textPassword.requestFocus();
|
||||||
|
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void showError() {
|
private void showError() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue