Skip to content

armgit / ente

Public Imported from GitHub
0

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

Delay app lock options until init

Neeraj Gupta2735f816493f
diff --git a/mobile/apps/photos/lib/ui/settings/lock_screen/lock_screen_options.dart b/mobile/apps/photos/lib/ui/settings/lock_screen/lock_screen_options.dart
index d75919fddd..40eafd452b 100644
--- a/mobile/apps/photos/lib/ui/settings/lock_screen/lock_screen_options.dart
+++ b/mobile/apps/photos/lib/ui/settings/lock_screen/lock_screen_options.dart
@@ -28,6 +28,7 @@ class _LockScreenOptionsState extends State<LockScreenOptions> {
late bool appLock;
late bool hideAppContent;
LockType _currentLockType = LockType.device;
+ bool _isInitialized = false;
@override
void initState() {
@@ -56,6 +57,7 @@ class _LockScreenOptionsState extends State<LockScreenOptions> {
appLock = pinEnabled ||
passwordEnabled ||
_configuration.shouldShowSystemLockScreen();
+ _isInitialized = true;
});
}
@@ -200,7 +202,7 @@ class _LockScreenOptionsState extends State<LockScreenOptions> {
),
),
),
- if (appLock) ...[
+ if (appLock && _isInitialized) ...[
const SizedBox(height: 16),
ClipRRect(
borderRadius: BorderRadius.circular(20),