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

Commit 5ea5c7e5 authored by Ikram Gabiyev's avatar Ikram Gabiyev Committed by Android (Google) Code Review
Browse files

Merge "Reset PiP leash crop upon remove" into main

parents 493adec1 5eb6df0e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -819,6 +819,9 @@ public class PipTransition extends PipTransitionController implements
            mPipBoundsState.setLastPipComponentName(null /* lastPipComponentName */);
        }

        final Rect startBounds = pipChange.getStartAbsBounds();
        startTransaction.setWindowCrop(pipChange.getLeash(),
                startBounds.width(), startBounds.height());
        finishTransaction.setAlpha(pipChange.getLeash(), 0f);
        if (mPendingRemoveWithFadeout) {
            PipAlphaAnimator animator = new PipAlphaAnimator(mContext, mPipSurfaceTransactionHelper,