Commit cebe91f3 authored by 余玠's avatar 余玠

避免最后一个Flutter页面隐藏时,会被engine持有

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