Ensure that remaining pin code attempts is never bigger than the value in the config.
This commit is contained in:
parent
6ad8a63e36
commit
ab48f761e1
1 changed files with 3 additions and 1 deletions
|
|
@ -82,5 +82,7 @@ class PreferencesLockScreenStore(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun Preferences.getRemainingPinCodeAttemptsNumber() = this[remainingAttemptsKey] ?: lockScreenConfig.maxPinCodeAttemptsBeforeLogout
|
private fun Preferences.getRemainingPinCodeAttemptsNumber() =
|
||||||
|
this[remainingAttemptsKey]?.coerceIn(0, lockScreenConfig.maxPinCodeAttemptsBeforeLogout)
|
||||||
|
?: lockScreenConfig.maxPinCodeAttemptsBeforeLogout
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue