π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Use better names
ashilkn12fbc6c80189
diff --git a/mobile/lib/ui/settings/lock_screen/lock_screen_options.dart b/mobile/lib/ui/settings/lock_screen/lock_screen_options.dartindex 9537270646..bfb34d1c03 100644--- a/mobile/lib/ui/settings/lock_screen/lock_screen_options.dart+++ b/mobile/lib/ui/settings/lock_screen/lock_screen_options.dart@@ -49,7 +49,7 @@ class _LockScreenOptionsState extends State<LockScreenOptions> {setState(() {isPasswordEnabled = passwordEnabled;isPinEnabled = pinEnabled;- hideAppContent = _lockscreenSetting.getShouldShowAppContent();+ hideAppContent = _lockscreenSetting.getShouldHideAppContent();});}@@ -110,7 +110,7 @@ class _LockScreenOptionsState extends State<LockScreenOptions> {await _configuration.setSystemLockScreen(!appLock);await _lockscreenSetting.removePinAndPassword();if (appLock == true) {- await _lockscreenSetting.setShowAppContent(false);+ await _lockscreenSetting.setHideAppContent(false);}setState(() {_initializeSettings();@@ -122,7 +122,7 @@ class _LockScreenOptionsState extends State<LockScreenOptions> {setState(() {hideAppContent = !hideAppContent;});- await _lockscreenSetting.setShowAppContent(+ await _lockscreenSetting.setHideAppContent(hideAppContent,);}diff --git a/mobile/lib/utils/lock_screen_settings.dart b/mobile/lib/utils/lock_screen_settings.dartindex 2baf36d01d..dc47a61e8a 100644--- a/mobile/lib/utils/lock_screen_settings.dart+++ b/mobile/lib/utils/lock_screen_settings.dart@@ -17,7 +17,7 @@ class LockScreenSettings {static const saltKey = "ls_salt";static const keyInvalidAttempts = "ls_invalid_attempts";static const lastInvalidAttemptTime = "ls_last_invalid_attempt_time";- static const keyShowAppContent = "ls_show_app_content";+ static const keyHideAppContent = "ls_hide_app_content";static const autoLockTime = "ls_auto_lock_time";late FlutterSecureStorage _secureStorage;late SharedPreferences _preferences;@@ -34,11 +34,11 @@ class LockScreenSettings {_preferences = prefs;///Workaround for privacyScreen not working when app is killed and opened.- await setShowAppContent(getShouldShowAppContent());+ await setHideAppContent(getShouldHideAppContent());}- Future<void> setShowAppContent(bool showContent) async {- !showContent+ Future<void> setHideAppContent(bool hideContent) async {+ !hideContent? await PrivacyScreen.instance.disable(): await PrivacyScreen.instance.enable(iosOptions: const PrivacyIosOptions(@@ -50,11 +50,11 @@ class LockScreenSettings {),blurEffect: PrivacyBlurEffect.extraLight,);- await _preferences.setBool(keyShowAppContent, showContent);+ await _preferences.setBool(keyHideAppContent, hideContent);}- bool getShouldShowAppContent() {- return _preferences.getBool(keyShowAppContent) ?? false;+ bool getShouldHideAppContent() {+ return _preferences.getBool(keyHideAppContent) ?? false;}Future<void> setAutoLockTime(Duration duration) async {