Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Auto lock default time set to 5 seconds

Aman Raj Singh Mourya254fb418ce8b
diff --git a/mobile/lib/ui/settings/lock_screen/lock_screen_options.dart b/mobile/lib/ui/settings/lock_screen/lock_screen_options.dart
index 6c7d9a2173..bf0462e197 100644
--- a/mobile/lib/ui/settings/lock_screen/lock_screen_options.dart
+++ b/mobile/lib/ui/settings/lock_screen/lock_screen_options.dart
@@ -259,7 +259,7 @@ class _LockScreenOptionsState extends State<LockScreenOptions> {
right: 12,
),
child: Text(
- "Time after which the app will be locked after closing",
+ "Time after which the app locks after being put in the background",
style: textTheme.miniFaint,
textAlign: TextAlign.left,
),
diff --git a/mobile/lib/utils/lock_screen_settings.dart b/mobile/lib/utils/lock_screen_settings.dart
index b4d7b0db49..d8d5cc511f 100644
--- a/mobile/lib/utils/lock_screen_settings.dart
+++ b/mobile/lib/utils/lock_screen_settings.dart
@@ -38,7 +38,7 @@ class LockScreenSettings {
}
int getAutoLockTime() {
- return _preferences.getInt(autoLockTime) ?? 0;
+ return _preferences.getInt(autoLockTime) ?? 5000;
}
Future<void> setLastInvalidAttemptTime(int time) async {