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

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

Merge "Use PipSurfaceTransactionHelper instead of Transaction API directly" into main

parents b8e96d2f 736c6a50
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1884,7 +1884,7 @@ public class PipTaskOrganizer implements ShellTaskOrganizer.TaskListener,
            return;
        }
        final SurfaceControl.Transaction tx = mSurfaceControlTransactionFactory.getTransaction();
        tx.setShadowRadius(mLeash, 0f);
        mSurfaceTransactionHelper.shadow(tx, mLeash, false /* applyShadowRadius */);
        tx.apply();
    }

+4 −2
Original line number Diff line number Diff line
@@ -343,7 +343,8 @@ public class TvPipTransition extends PipTransitionController {

        final SurfaceControl.Transaction transaction = mTransactionFactory.getTransaction();
        for (SurfaceControl leash : closeLeashes) {
            startTransaction.setShadowRadius(leash, 0f);
            mSurfaceTransactionHelper.shadow(startTransaction, leash,
                    false /* applyShadowRadius */);
        }

        ValueAnimator closeFadeOutAnimator = createAnimator();
@@ -361,7 +362,8 @@ public class TvPipTransition extends PipTransitionController {
                ProtoLog.v(ShellProtoLogGroup.WM_SHELL_PICTURE_IN_PICTURE,
                        "%s: close animation: start", TAG);
                for (SurfaceControl leash : closeLeashes) {
                    startTransaction.setShadowRadius(leash, 0f);
                    mSurfaceTransactionHelper.shadow(startTransaction, leash,
                            false /* applyShadowRadius */);
                }
                startTransaction.apply();