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

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

Merge "Apply window crop on entering PiP transition" into sc-dev

parents b87b87cf 1c2ffc54
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -469,6 +469,11 @@ public class PipAnimationController {
                    getSurfaceTransactionHelper()
                            .alpha(tx, leash, 1f)
                            .round(tx, leash, shouldApplyCornerRadius());
                    // TODO(b/178632364): this is a work around for the black background when
                    // entering PiP in buttion navigation mode.
                    if (isInPipDirection(direction)) {
                        tx.setWindowCrop(leash, getStartValue());
                    }
                    tx.show(leash);
                    tx.apply();
                }