Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ff085774 authored by Vishnu Nair's avatar Vishnu Nair Committed by Android (Google) Code Review
Browse files

Merge "Reparent SurfacePackage to null when releasing it" into sc-dev

parents c19c22f2 64d5cb37
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
        }