mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-05-14 14:02:49 +00:00
Allow changing the password if no password slot is present
This commit is contained in:
parent
c73c29d2ec
commit
3a5a185940
1 changed files with 3 additions and 1 deletions
|
@ -828,7 +828,9 @@ public class PreferencesFragment extends PreferenceFragmentCompat {
|
||||||
|
|
||||||
// remove the old master password slot
|
// remove the old master password slot
|
||||||
PasswordSlot oldSlot = creds.getSlots().find(PasswordSlot.class);
|
PasswordSlot oldSlot = creds.getSlots().find(PasswordSlot.class);
|
||||||
slots.remove(oldSlot);
|
if (oldSlot != null) {
|
||||||
|
slots.remove(oldSlot);
|
||||||
|
}
|
||||||
|
|
||||||
// add the new master password slot
|
// add the new master password slot
|
||||||
slots.add(slot);
|
slots.add(slot);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue