Add missing MouseCursorPlugin destroy call (flutter/engine#19968)

This commit is contained in:
Jason Simmons
2020-07-29 17:01:04 -07:00
committed by GitHub
parent ae15718079
commit 0c3c6ab964

View File

@@ -936,6 +936,10 @@ public class FlutterView extends FrameLayout implements MouseCursorPlugin.MouseC
textInputPlugin.getInputMethodManager().restartInput(this);
textInputPlugin.destroy();
if (mouseCursorPlugin != null) {
mouseCursorPlugin.destroy();
}
// Instruct our FlutterRenderer that we are no longer interested in being its RenderSurface.
FlutterRenderer flutterRenderer = flutterEngine.getRenderer();
isFlutterUiDisplayed = false;