From 254fb418ce8b499c1d8e2c282da3082ef3389151 Mon Sep 17 00:00:00 2001 From: Aman Raj Singh Mourya Date: Sat, 20 Jul 2024 20:03:56 +0530 Subject: [PATCH] [mob][photos] Auto lock default time set to 5 seconds --- mobile/lib/ui/settings/lock_screen/lock_screen_options.dart | 2 +- mobile/lib/utils/lock_screen_settings.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 { 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 setLastInvalidAttemptTime(int time) async {