Skip to content

Commit

Permalink
Fix background crash when FlutterView going appear while app goes bac…
Browse files Browse the repository at this point in the history
…kground (#23175)
  • Loading branch information
pepsin committed Jan 21, 2021
1 parent 3da13fc commit 9223073
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -664,8 +664,9 @@ - (void)viewDidAppear:(BOOL)animated {
TRACE_EVENT0("flutter", "viewDidAppear");
[self onUserSettingsChanged:nil];
[self onAccessibilityStatusChanged:nil];
[[_engine.get() lifecycleChannel] sendMessage:@"AppLifecycleState.resumed"];

if (UIApplication.sharedApplication.applicationState == UIApplicationStateActive) {
[[_engine.get() lifecycleChannel] sendMessage:@"AppLifecycleState.resumed"];
}
[super viewDidAppear:animated];
}

Expand Down

0 comments on commit 9223073

Please sign in to comment.