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

Commit 8e4db580 authored by Hongwei Wang's avatar Hongwei Wang Committed by Android (Google) Code Review
Browse files

Merge "Fix PiP window on rotation" into rvc-dev

parents 42199418 ed98ad97
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -884,8 +884,8 @@ class WindowStateAnimator {
            clipRect = mTmpClipRect;
            clipRect = mTmpClipRect;
        }
        }


        if (mSurfaceResized && (mAttrType == TYPE_BASE_APPLICATION) &&
        if (w.mInRelayout && (mAttrType == TYPE_BASE_APPLICATION) && (task != null)
            (task != null) && (task.getMainWindowSizeChangeTransaction() != null)) {
                && (task.getMainWindowSizeChangeTransaction() != null)) {
            mSurfaceController.deferTransactionUntil(mWin.getClientViewRootSurface(),
            mSurfaceController.deferTransactionUntil(mWin.getClientViewRootSurface(),
                    mWin.getFrameNumber());
                    mWin.getFrameNumber());
            SurfaceControl.mergeToGlobalTransaction(task.getMainWindowSizeChangeTransaction());
            SurfaceControl.mergeToGlobalTransaction(task.getMainWindowSizeChangeTransaction());