mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-05-14 22:12:55 +00:00
Merge pull request #377 from alexbakker/fix-weird-reminder-crash
Show the password reminder popup after the window has been attached
This commit is contained in:
commit
f68badb659
1 changed files with 7 additions and 1 deletions
|
@ -162,7 +162,6 @@ public class AuthActivity extends AegisActivity implements SlotListTask.Callback
|
||||||
if (_bioPrompt != null) {
|
if (_bioPrompt != null) {
|
||||||
if (_prefs.isPasswordReminderNeeded()) {
|
if (_prefs.isPasswordReminderNeeded()) {
|
||||||
focusPasswordField();
|
focusPasswordField();
|
||||||
showPasswordReminder();
|
|
||||||
} else {
|
} else {
|
||||||
showBiometricPrompt();
|
showBiometricPrompt();
|
||||||
}
|
}
|
||||||
|
@ -171,6 +170,13 @@ public class AuthActivity extends AegisActivity implements SlotListTask.Callback
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onAttachedToWindow() {
|
||||||
|
if (_bioPrompt != null && _prefs.isPasswordReminderNeeded()) {
|
||||||
|
showPasswordReminder();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void focusPasswordField() {
|
private void focusPasswordField() {
|
||||||
_textPassword.requestFocus();
|
_textPassword.requestFocus();
|
||||||
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE);
|
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue