Merge "SurfaceView: Release Surface with SurfaceControl." into oc-dev am: 3630fd4e11

am: 9cbe611f4a

Change-Id: I1b18f556b4b42f81ddca69ae5ce420d7a612bf6b
This commit is contained in:
Rob Carr
2017-05-09 17:14:05 +00:00
committed by android-build-merger

View File

@@ -678,6 +678,7 @@ public class SurfaceView extends View implements ViewRootImpl.WindowStoppedCallb
mIsCreating = false;
if (mSurfaceControl != null && !mSurfaceCreated) {
mSurfaceControl.destroy();
mSurface.release();
mSurfaceControl = null;
}
}