Commit b422a070 authored by ColdPaleLight's avatar ColdPaleLight

fix issue about main thread always waiting

parent 236e9de5
...@@ -121,6 +121,9 @@ ...@@ -121,6 +121,9 @@
- (void)prepareEngineIfNeeded - (void)prepareEngineIfNeeded
{ {
if ([_dummy respondsToSelector:@selector(setEnableForRunnersBatch:)]) {
[_dummy setEnableForRunnersBatch:YES];
}
[self detach]; [self detach];
[_dummy surfaceUpdated:YES]; [_dummy surfaceUpdated:YES];
} }
......
...@@ -29,5 +29,6 @@ ...@@ -29,5 +29,6 @@
NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_BEGIN
@interface FLB2FlutterViewContainer : FlutterViewController<FLBFlutterContainer> @interface FLB2FlutterViewContainer : FlutterViewController<FLBFlutterContainer>
- (void)surfaceUpdated:(BOOL)appeared; - (void)surfaceUpdated:(BOOL)appeared;
- (void)setEnableForRunnersBatch:(BOOL)enable;
@end @end
NS_ASSUME_NONNULL_END NS_ASSUME_NONNULL_END
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment