Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0e86206d authored by David Anderson's avatar David Anderson Committed by android-build-merger
Browse files

PasswordSlotManager: Fix incorrect string comparison.

am: d1552e36

Change-Id: I38b0530923ea79e242bb9d78217961229c0b437c
parents b7e6400f d1552e36
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -122,7 +122,7 @@ public class PasswordSlotManager {
     */
    public void markSlotDeleted(int slot) throws RuntimeException {
        ensureSlotMapLoaded();
        if (mSlotMap.containsKey(slot) && mSlotMap.get(slot) != getMode()) {
        if (mSlotMap.containsKey(slot) && !mSlotMap.get(slot).equals(getMode())) {
            throw new RuntimeException("password slot " + slot + " cannot be deleted");
        }
        mSlotMap.remove(slot);