Skip to content

Commit

Permalink
modify protectUserData method to only clear pinEntryCompare variable …
Browse files Browse the repository at this point in the history
…when user is resetting pin
  • Loading branch information
05nelsonm committed Jun 4, 2020
1 parent bde888a commit 2a60e95
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -367,8 +367,10 @@ class PinAuthenticationActivityViewModel @Inject constructor(
private fun protectUserData() {
if (currentPinEntryState == PAPinEntryState.SET_PIN && paActivityAP.isUserPinSet()) {
paViewData.setPinEntryState(PAPinEntryState.RESET_PIN)
pinEntry.clear()
} else {
pinEntry.clear(clearPinEntryCompare = false)
}
pinEntry.clear()
}


Expand Down

0 comments on commit 2a60e95

Please sign in to comment.