π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][auth] Hide content default value set to true when applock enabled
Aman Raj Singh Mourya30cecf53b3b7
diff --git a/auth/lib/ui/settings/lock_screen/lock_screen_options.dart b/auth/lib/ui/settings/lock_screen/lock_screen_options.dartindex 71bb539509..2c600a0d1d 100644--- a/auth/lib/ui/settings/lock_screen/lock_screen_options.dart+++ b/auth/lib/ui/settings/lock_screen/lock_screen_options.dart@@ -104,13 +104,12 @@ class _LockScreenOptionsState extends State<LockScreenOptions> {await _configuration.setSystemLockScreen(!appLock);await _lockscreenSetting.removePinAndPassword();if (PlatformUtil.isMobile()) {- if (appLock == false) {- await _lockscreenSetting.setHideAppContent(true);- }+ await _lockscreenSetting.setHideAppContent(!appLock);}setState(() {_initializeSettings();appLock = !appLock;+ hideAppContent = _lockscreenSetting.getShouldHideAppContent();});}diff --git a/auth/lib/utils/lock_screen_settings.dart b/auth/lib/utils/lock_screen_settings.dartindex 89db3df7ae..b857bcc9f5 100644--- a/auth/lib/utils/lock_screen_settings.dart+++ b/auth/lib/utils/lock_screen_settings.dart@@ -54,7 +54,7 @@ class LockScreenSettings {}bool getShouldHideAppContent() {- return _preferences.getBool(keyHideAppContent) ?? false;+ return _preferences.getBool(keyHideAppContent) ?? true;}Future<void> setAutoLockTime(Duration duration) async {