Merge "SurfaceView: Release Surface with SurfaceControl." into oc-dev
This commit is contained in:
@@ -678,6 +678,7 @@ public class SurfaceView extends View implements ViewRootImpl.WindowStoppedCallb
|
||||
mIsCreating = false;
|
||||
if (mSurfaceControl != null && !mSurfaceCreated) {
|
||||
mSurfaceControl.destroy();
|
||||
mSurface.release();
|
||||
mSurfaceControl = null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user