[mob][photos] Clean up configuration.dart

This commit is contained in:
ashilkn
2024-07-02 14:44:22 +05:30
parent 9fd94c63d9
commit ec04becd0e

View File

@@ -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<bool> 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();
}