Delete the native view when destroying the FlutterView (flutter/engine#4356)
Fixes https://github.com/flutter/flutter/issues/12996
This commit is contained in:
@@ -319,6 +319,9 @@ public class FlutterView extends SurfaceView
|
||||
}
|
||||
|
||||
getHolder().removeCallback(mSurfaceCallback);
|
||||
|
||||
mNativeView.destroy();
|
||||
mNativeView = null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user