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

Commit bc056fcb authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix mistake in SurfaceView lifetime refactoring."

parents ec2b60ef de63cc6e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -712,6 +712,8 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall
        mSurfaceAlpha = 1f;

        synchronized (mSurfaceControlLock) {
            mSurface.release();

            if (mRtHandlingPositionUpdates) {
                mRtReleaseSurfaces = true;
                return;
@@ -725,7 +727,6 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall
                mTmpTransaction.remove(mBackgroundControl);
                mBackgroundControl = null;
            }
            mSurface.release();
            mTmpTransaction.apply();
        }
    }
@@ -1198,7 +1199,6 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall
                    mRtTransaction.remove(mBackgroundControl);
                    mSurfaceControl = null;
                    mBackgroundControl = null;
                    mSurface.release();
                }
                mRtHandlingPositionUpdates = false;
            }