Skip to content

Commit 8464208

Browse files
Add missing MouseCursorPlugin destroy call (flutter#19968)
1 parent f288fe5 commit 8464208

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

shell/platform/android/io/flutter/embedding/android/FlutterView.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -936,6 +936,10 @@ public void detachFromFlutterEngine() {
936936
textInputPlugin.getInputMethodManager().restartInput(this);
937937
textInputPlugin.destroy();
938938

939+
if (mouseCursorPlugin != null) {
940+
mouseCursorPlugin.destroy();
941+
}
942+
939943
// Instruct our FlutterRenderer that we are no longer interested in being its RenderSurface.
940944
FlutterRenderer flutterRenderer = flutterEngine.getRenderer();
941945
isFlutterUiDisplayed = false;

0 commit comments

Comments
 (0)