mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
Fix
This commit is contained in:
parent
7dc07bd407
commit
737fa75d28
1 changed files with 4 additions and 7 deletions
|
@ -245,13 +245,10 @@ 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
|
// PIN is correct, proceed to update the account
|
||||||
} else {
|
performAccountUpdate(currentEditAccount)
|
||||||
// PIN is correct, proceed to update the account
|
dialog.dismissSafe()
|
||||||
performAccountUpdate(currentEditAccount)
|
|
||||||
dialog.dismissSafe()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// No lock PIN set, proceed to update the account
|
// No lock PIN set, proceed to update the account
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue