Delete the native view when destroying the FlutterView (#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 1f0c959189
commit bb55d65085
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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