From 2efa7fea9629ca434b8a9733c86e8f73772033fe Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Wed, 10 Jul 2024 16:22:07 +0200 Subject: [PATCH] Change PIN grace period to 2 minutes. --- .../kotlin/io/element/android/appconfig/LockScreenConfig.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appconfig/src/main/kotlin/io/element/android/appconfig/LockScreenConfig.kt b/appconfig/src/main/kotlin/io/element/android/appconfig/LockScreenConfig.kt index 78ed65b070..8e9b7b653c 100644 --- a/appconfig/src/main/kotlin/io/element/android/appconfig/LockScreenConfig.kt +++ b/appconfig/src/main/kotlin/io/element/android/appconfig/LockScreenConfig.kt @@ -17,7 +17,7 @@ package io.element.android.appconfig import kotlin.time.Duration -import kotlin.time.Duration.Companion.seconds +import kotlin.time.Duration.Companion.minutes object LockScreenConfig { /** Whether the PIN is mandatory or not. */ @@ -33,7 +33,7 @@ object LockScreenConfig { const val MAX_PIN_CODE_ATTEMPTS_BEFORE_LOGOUT: Int = 3 /** 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. */ const val IS_STRONG_BIOMETRICS_ENABLED: Boolean = true