π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[auth] key to store the status of applock warning
Aman Raj Singh Mouryaf2e3b0e0bf74
diff --git a/auth/lib/utils/lock_screen_settings.dart b/auth/lib/utils/lock_screen_settings.dartindex 36914cf1eb..d698a32528 100644--- a/auth/lib/utils/lock_screen_settings.dart+++ b/auth/lib/utils/lock_screen_settings.dart@@ -23,6 +23,8 @@ class LockScreenSettings {static const keyAppLockSet = "ls_is_app_lock_set";static const keyHasMigratedLockScreenChanges ="ls_has_migrated_lock_screen_changes";+ static const keyShowOfflineModeWarning = "ls_show_offline_mode_warning";+final List<Duration> autoLockDurations = const [Duration(milliseconds: 650),Duration(seconds: 5),@@ -47,6 +49,14 @@ class LockScreenSettings {await runLockScreenChangesMigration();}+ Future<void> setOfflineModeWarningStatus(bool value) async {+ await _preferences.setBool(keyShowOfflineModeWarning, value);+ }++ bool getOfflineModeWarningStatus() {+ return _preferences.getBool(keyShowOfflineModeWarning) ?? false;+ }+Future<void> runLockScreenChangesMigration() async {if (_preferences.getBool(keyHasMigratedLockScreenChanges) != null) {return;