Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

refactor: show black color as default background color in hideAppContent

AmanRajSinghMourya6bd5327d5093
diff --git a/mobile/apps/auth/lib/utils/lock_screen_settings.dart b/mobile/apps/auth/lib/utils/lock_screen_settings.dart
index 247f7ae4b2..5831efc7e8 100644
--- a/mobile/apps/auth/lib/utils/lock_screen_settings.dart
+++ b/mobile/apps/auth/lib/utils/lock_screen_settings.dart
@@ -93,7 +93,6 @@ class LockScreenSettings {
Future<void> setHideAppContent(bool hideContent) async {
if (PlatformUtil.isDesktop()) return;
- final bool isLightMode = _preferences.getBool(kIsLightMode) ?? true;
!hideContent
? PrivacyScreen.instance.disable()
: await PrivacyScreen.instance.enable(
@@ -103,11 +102,8 @@ class LockScreenSettings {
androidOptions: const PrivacyAndroidOptions(
enableSecure: true,
),
- backgroundColor:
- isLightMode ? const Color(0xffffffff) : const Color(0xff000000),
- blurEffect: isLightMode
- ? PrivacyBlurEffect.extraLight
- : PrivacyBlurEffect.extraLight,
+ backgroundColor: const Color(0xff000000),
+ blurEffect: PrivacyBlurEffect.extraLight,
);
await _preferences.setBool(keyHideAppContent, hideContent);
}