mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Delete the native view when destroying the FlutterView (#4356)
Fixes https://github.com/flutter/flutter/issues/12996
This commit is contained in:
parent
1f0c959189
commit
bb55d65085
@ -319,6 +319,9 @@ public class FlutterView extends SurfaceView
|
||||
}
|
||||
|
||||
getHolder().removeCallback(mSurfaceCallback);
|
||||
|
||||
mNativeView.destroy();
|
||||
mNativeView = null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user