Ensure that remaining pin code attempts is never bigger than the value in the config.
This commit is contained in:
parent
d558371798
commit
d18b529285
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