Properly handle LockedException during PIN guess.

This commit is contained in:
Greyson Parrelli
2021-12-01 12:35:37 -05:00
parent d48632d09d
commit 4ba4df706e
2 changed files with 5 additions and 1 deletions

View File

@@ -27,6 +27,10 @@ class VerifyCodeWithRegistrationLockResponseProcessor(
return super.getError()
}
public override fun registrationLock(): Boolean {
return super.registrationLock()
}
fun wrongPin(): Boolean {
return error is KeyBackupSystemWrongPinException
}

View File

@@ -180,7 +180,7 @@ public abstract class BaseRegistrationLockFragment extends LoggingFragment {
handleSuccessfulPinEntry(pin);
} else if (processor.wrongPin()) {
onIncorrectKbsRegistrationLockPin(processor.getToken());
} else if (processor.isKbsLocked()) {
} else if (processor.isKbsLocked() || processor.registrationLock()) {
onKbsAccountLocked();
} else if (processor.rateLimit()) {
onRateLimited();