feat: add setting for auto-lock fix: fix sideswipe

This commit is contained in:
2026-08-04 01:09:01 +02:00
parent 0997d110d4
commit 812fcc892b
23 changed files with 629 additions and 28 deletions
+2
View File
@@ -27,6 +27,8 @@ class _KoolTabAppState extends State<KoolTabApp> {
_lifecycleLockObserver = AppLifecycleLockObserver(
onLock: () => context.read<PinLockViewModel>().lock(),
shouldLock: () =>
context.read<SettingsViewModel>().settings.autoLockEnabled,
);
WidgetsBinding.instance.addObserver(_lifecycleLockObserver);