Loading services/core/java/com/android/server/locksettings/PasswordSlotManager.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -122,7 +122,7 @@ public class PasswordSlotManager { */ */ public void markSlotDeleted(int slot) throws RuntimeException { public void markSlotDeleted(int slot) throws RuntimeException { ensureSlotMapLoaded(); 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"); throw new RuntimeException("password slot " + slot + " cannot be deleted"); } } mSlotMap.remove(slot); mSlotMap.remove(slot); Loading Loading
services/core/java/com/android/server/locksettings/PasswordSlotManager.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -122,7 +122,7 @@ public class PasswordSlotManager { */ */ public void markSlotDeleted(int slot) throws RuntimeException { public void markSlotDeleted(int slot) throws RuntimeException { ensureSlotMapLoaded(); 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"); throw new RuntimeException("password slot " + slot + " cannot be deleted"); } } mSlotMap.remove(slot); mSlotMap.remove(slot); Loading