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

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

Merge "Avoid duplicated crop in PipAnimationController" into main

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