mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-05-04 20:30:36 +00:00
Reset the PIN keyboard option when the password is changed
This fixes an issue where the PIN keyboard was shown after a password change, regardless of whether it only contained digits or not.
This commit is contained in:
parent
52d2713482
commit
01885e1fc6
2 changed files with 6 additions and 2 deletions
|
@ -36,9 +36,7 @@ import com.beemdevelopment.aegis.services.NotificationService;
|
|||
import com.beemdevelopment.aegis.ui.models.ImportEntry;
|
||||
import com.beemdevelopment.aegis.ui.preferences.SwitchPreference;
|
||||
import com.beemdevelopment.aegis.ui.tasks.PasswordSlotDecryptTask;
|
||||
import com.beemdevelopment.aegis.ui.tasks.ProgressDialogTask;
|
||||
import com.beemdevelopment.aegis.util.UUIDMap;
|
||||
import com.beemdevelopment.aegis.vault.Vault;
|
||||
import com.beemdevelopment.aegis.vault.VaultBackupManager;
|
||||
import com.beemdevelopment.aegis.vault.VaultEntry;
|
||||
import com.beemdevelopment.aegis.vault.VaultFileCredentials;
|
||||
|
@ -925,6 +923,11 @@ public class PreferencesFragment extends PreferenceFragmentCompat {
|
|||
|
||||
_vault.setCredentials(creds);
|
||||
saveVault();
|
||||
|
||||
if (_prefs.isPinKeyboardEnabled()) {
|
||||
setPinKeyboardPreference(false);
|
||||
Toast.makeText(getContext(), R.string.pin_keyboard_disabled, Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue