Delete the native view when destroying the FlutterView (flutter/engine#4356)

Fixes https://github.com/flutter/flutter/issues/12996
This commit is contained in:
Jason Simmons
2017-11-13 13:16:48 -08:00
committed by GitHub
parent 025a7673b2
commit 63b797fd55

View File

@@ -319,6 +319,9 @@ public class FlutterView extends SurfaceView
}
getHolder().removeCallback(mSurfaceCallback);
mNativeView.destroy();
mNativeView = null;
}
@Override