fix
This commit is contained in:
@@ -34,7 +34,7 @@ class SaveFamilyAppState extends ConsumerState<SaveFamilyApp>
|
||||
onError: () => appRouter.go(AppRoutes.scaTreezor),
|
||||
);
|
||||
onBeforeSessionCleared = walletHeartbeat.stop;
|
||||
walletHeartbeat.start();
|
||||
// walletHeartbeat.start();
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -49,10 +49,10 @@ class SaveFamilyAppState extends ConsumerState<SaveFamilyApp>
|
||||
debugPrint('State: $state');
|
||||
ref.read(appLifecycleStateProvider.notifier).setState(state);
|
||||
if (state == AppLifecycleState.resumed) {
|
||||
walletHeartbeat.start();
|
||||
// walletHeartbeat.start();
|
||||
ref.read(permissionsProvider.notifier).checkPermissions();
|
||||
} else if (state == AppLifecycleState.paused) {
|
||||
walletHeartbeat.stop();
|
||||
// walletHeartbeat.stop();
|
||||
}
|
||||
super.didChangeAppLifecycleState(state);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user