Fix background crash when FlutterView going appear while app goes background (flutter/engine#23175)
This commit is contained in:
@@ -664,8 +664,9 @@ static void sendFakeTouchEvent(FlutterEngine* engine,
|
||||
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];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user