From 95285c5133178cba7f6a0f6db89cfc84a7800f59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Rychnovsk=C3=BD?= Date: Fri, 15 Nov 2024 14:05:37 +0100 Subject: [PATCH] Simplify first launch authentication decision (#1685) We can stop the decision logic even from this place, as we omit the authentication when secrets are not set yet. --- .../zcash/ui/preference/StandardPreferenceKeys.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui-lib/src/main/java/co/electriccoin/zcash/ui/preference/StandardPreferenceKeys.kt b/ui-lib/src/main/java/co/electriccoin/zcash/ui/preference/StandardPreferenceKeys.kt index 26127b81..677dbba6 100644 --- a/ui-lib/src/main/java/co/electriccoin/zcash/ui/preference/StandardPreferenceKeys.kt +++ b/ui-lib/src/main/java/co/electriccoin/zcash/ui/preference/StandardPreferenceKeys.kt @@ -76,5 +76,8 @@ object StandardPreferenceKeys { null ) val LATEST_APP_BACKGROUND_TIME_MILLIS = - LongPreferenceDefault(PreferenceKey("LATEST_APP_BACKGROUND_TIME_MILLIS"), 0) + LongPreferenceDefault( + PreferenceKey("LATEST_APP_BACKGROUND_TIME_MILLIS"), + Long.MAX_VALUE + ) }