Commit 94409dbb authored by 余玠's avatar 余玠

cherry pick from flutter_1.5_upgrade_opt:

避免最后一个Flutter页面隐藏时,会被engine持有
parent 02a8a0a2
......@@ -262,7 +262,13 @@ static NSUInteger kInstanceCounter = 0;
pageName:_name
params:_params
uniqueId:self.uniqueIDString];
[self bridge_viewDidDisappear:animated];
//如果当前不可见vc和engine所持有的vc一致。在FlutterVC在混合栈中是最后一张页面,如tab中的页面
if (self == FLUTTER_VC)
{
[self surfaceUpdated:NO];
[self detatchFlutterEngine];
}
[super bridge_viewDidDisappear:animated];
}
- (void)installSplashScreenViewIfNecessary {
......
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