PasswordSlotManager: Fix incorrect string comparison.
Bug: 135721162 Test: cts-on-gsi -m CtsWindowManagerDeviceTestCases Change-Id: I2a11dd6dfd44e10400e40ebbaa2ed597de95cdcb Merged-In: I2a11dd6dfd44e10400e40ebbaa2ed597de95cdcb
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user