Merge "Reparent SurfacePackage to null when releasing it" into sc-dev
This commit is contained in:
@@ -544,6 +544,7 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall
|
||||
// recreate this Surface, so only release it when we are fully
|
||||
// detached.
|
||||
if (mSurfacePackage != null) {
|
||||
mTmpTransaction.reparent(mSurfacePackage.getSurfaceControl(), null).apply();
|
||||
mSurfacePackage.release();
|
||||
mSurfacePackage = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user