fix FlutterOverlayView doesn't remove from superview in some cases (flutter/engine#9532)

This commit is contained in:
Qxyat
2019-06-28 00:07:52 +08:00
committed by Chris Yang
parent 4ddd23d7b7
commit 43b63e842d

View File

@@ -411,6 +411,9 @@ void FlutterPlatformViewsController::DisposeViews() {
views_.erase(viewId);
touch_interceptors_.erase(viewId);
root_views_.erase(viewId);
if (overlays_.find(viewId) != overlays_.end()) {
[overlays_[viewId]->overlay_view.get() removeFromSuperview];
}
overlays_.erase(viewId);
current_composition_params_.erase(viewId);
clip_count_.erase(viewId);