hotfix lifecyclestates
This commit is contained in:
parent
c5fa3a719b
commit
d6c5f50a78
|
@ -287,9 +287,8 @@ class _AppState extends State<App> with WidgetsBindingObserver {
|
|||
}
|
||||
|
||||
@override void didChangeAppLifecycleState(AppLifecycleState state) async {
|
||||
if (state == AppLifecycleState.resumed) await StorageUtil().ensureInitialization();
|
||||
if (state == AppLifecycleState.resumed) LocalizationService.processLocals(context);
|
||||
else LocalizationService.processData(context);
|
||||
await StorageUtil().ensureInitialization();
|
||||
LocalizationService.processLocals(context);
|
||||
}
|
||||
|
||||
@override Widget build(BuildContext context) {
|
||||
|
|
Loading…
Reference in New Issue