mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-24 10:28:50 +01:00
Fix lock screen temporarily showing even when app lock is not enabled
This commit is contained in:
parent
01551d36fc
commit
bd0e4fd342
1 changed files with 4 additions and 0 deletions
|
@ -21,6 +21,10 @@ class _AppLockMyAppState extends State<_AppLockMyApp> {
|
||||||
SessionStorage().lastSuspendTime = clock.now();
|
SessionStorage().lastSuspendTime = clock.now();
|
||||||
},
|
},
|
||||||
onShow: () async {
|
onShow: () async {
|
||||||
|
if (context.read<SecurePrefController>().protectedPageAuthTypeValue ==
|
||||||
|
null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
final now = clock.now();
|
final now = clock.now();
|
||||||
final diff = now.difference(SessionStorage().lastSuspendTime);
|
final diff = now.difference(SessionStorage().lastSuspendTime);
|
||||||
_log.info("Suspended for: $diff");
|
_log.info("Suspended for: $diff");
|
||||||
|
|
Loading…
Reference in a new issue