This commit is contained in:
Luna712 2023-10-28 17:37:17 -06:00
parent 7dc07bd407
commit 737fa75d28

View file

@ -245,14 +245,11 @@ object DataStoreHelper {
if (currentEditAccount.lockPin != null) { if (currentEditAccount.lockPin != null) {
// Ask for the current PIN // Ask for the current PIN
showPinInputDialog(context, currentEditAccount.lockPin, false) { pin -> showPinInputDialog(context, currentEditAccount.lockPin, false) { pin ->
if (pin == null || pin != currentEditAccount.lockPin) { if (pin == null) return@showPinInputDialog
binding.lockProfileCheckbox.isChecked = true
} else {
// PIN is correct, proceed to update the account // PIN is correct, proceed to update the account
performAccountUpdate(currentEditAccount) performAccountUpdate(currentEditAccount)
dialog.dismissSafe() dialog.dismissSafe()
} }
}
} else { } else {
// No lock PIN set, proceed to update the account // No lock PIN set, proceed to update the account
performAccountUpdate(currentEditAccount) performAccountUpdate(currentEditAccount)