From ec04becd0e9ae864bd7cd5e41366c5dff4f82464 Mon Sep 17 00:00:00 2001 From: ashilkn Date: Tue, 2 Jul 2024 14:44:22 +0530 Subject: [PATCH] [mob][photos] Clean up configuration.dart --- mobile/lib/core/configuration.dart | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/mobile/lib/core/configuration.dart b/mobile/lib/core/configuration.dart index 571a9d0f19..1bb28050aa 100644 --- a/mobile/lib/core/configuration.dart +++ b/mobile/lib/core/configuration.dart @@ -73,9 +73,6 @@ class Configuration { "has_selected_all_folders_for_backup"; static const anonymousUserIDKey = "anonymous_user_id"; static const endPointKey = "endpoint"; - static const password = "user_pass"; - static const pin = "user_pin"; - static const saltKey = "user_salt"; static final _logger = Logger("Configuration"); String? _cachedToken; @@ -86,7 +83,6 @@ class Configuration { late FlutterSecureStorage _secureStorage; late String _tempDocumentsDirPath; late String _thumbnailCacheDirectory; - final LockscreenSetting _lockscreenSetting = LockscreenSetting.instance; // 6th July 22: Remove this after 3 months. Hopefully, active users // will migrate to newer version of the app, where shared media is stored // on appSupport directory which OS won't clean up automatically @@ -624,8 +620,8 @@ class Configuration { } Future shouldShowLockScreen() async { - final bool isPin = await _lockscreenSetting.isPinSet(); - final bool isPass = await _lockscreenSetting.isPasswordSet(); + final bool isPin = await LockscreenSetting.instance.isPinSet(); + final bool isPass = await LockscreenSetting.instance.isPasswordSet(); return isPin || isPass || shouldShowSystemLockScreen(); }