feat: add setting for auto-lock fix: fix sideswipe
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user