Allow changing the password if no password slot is present

This commit is contained in:
Alexander Bakker 2020-06-29 21:25:49 +02:00
parent c73c29d2ec
commit 3a5a185940

View file

@ -828,7 +828,9 @@ public class PreferencesFragment extends PreferenceFragmentCompat {
// remove the old master password slot
PasswordSlot oldSlot = creds.getSlots().find(PasswordSlot.class);
if (oldSlot != null) {
slots.remove(oldSlot);
}
// add the new master password slot
slots.add(slot);