mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 09:47:35 +00:00
Check whether it needs to request auth or not AFTER the user gets back to the app
This commit is contained in:
parent
761b34999e
commit
f9566cf33e
1 changed files with 5 additions and 4 deletions
|
@ -91,14 +91,15 @@ class RootState extends State<Root> with WidgetsBindingObserver {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
setState(() {
|
|
||||||
_requestAuth = widget.authService.requireAuth();
|
|
||||||
});
|
|
||||||
|
|
||||||
if (!_isInactive && widget.authenticationStore.state == AuthenticationState.allowed) {
|
if (!_isInactive && widget.authenticationStore.state == AuthenticationState.allowed) {
|
||||||
setState(() => _setInactive(true));
|
setState(() => _setInactive(true));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
|
case AppLifecycleState.resumed:
|
||||||
|
setState(() {
|
||||||
|
_requestAuth = widget.authService.requireAuth();
|
||||||
|
});
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue