mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Change PIN grace period to 2 minutes.
This commit is contained in:
committed by
Benoit Marty
parent
d1a4fd76de
commit
2efa7fea96
@@ -17,7 +17,7 @@
|
|||||||
package io.element.android.appconfig
|
package io.element.android.appconfig
|
||||||
|
|
||||||
import kotlin.time.Duration
|
import kotlin.time.Duration
|
||||||
import kotlin.time.Duration.Companion.seconds
|
import kotlin.time.Duration.Companion.minutes
|
||||||
|
|
||||||
object LockScreenConfig {
|
object LockScreenConfig {
|
||||||
/** Whether the PIN is mandatory or not. */
|
/** Whether the PIN is mandatory or not. */
|
||||||
@@ -33,7 +33,7 @@ object LockScreenConfig {
|
|||||||
const val MAX_PIN_CODE_ATTEMPTS_BEFORE_LOGOUT: Int = 3
|
const val MAX_PIN_CODE_ATTEMPTS_BEFORE_LOGOUT: Int = 3
|
||||||
|
|
||||||
/** Time period before locking the app once backgrounded. */
|
/** Time period before locking the app once backgrounded. */
|
||||||
val GRACE_PERIOD: Duration = 0.seconds
|
val GRACE_PERIOD: Duration = 2.minutes
|
||||||
|
|
||||||
/** Authentication with strong methods (fingerprint, some face/iris unlock implementations) is supported. */
|
/** Authentication with strong methods (fingerprint, some face/iris unlock implementations) is supported. */
|
||||||
const val IS_STRONG_BIOMETRICS_ENABLED: Boolean = true
|
const val IS_STRONG_BIOMETRICS_ENABLED: Boolean = true
|
||||||
|
|||||||
Reference in New Issue
Block a user