mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 09:47:35 +00:00
Merge pull request #675 from cake-tech/CW-280-fix-pin-timeout
[CW-280] Fix PIN timeout issue
This commit is contained in:
commit
34f0e0912b
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