mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-06-09 16:17:48 +00:00
Merge pull request #498 from alexbakker/slot-null
Allow changing the password if no password slot is present
This commit is contained in:
commit
94ebc08097
1 changed files with 3 additions and 1 deletions
|
@ -822,7 +822,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);
|
||||||
|
if (oldSlot != null) {
|
||||||
slots.remove(oldSlot);
|
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