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

Commit 0418c624 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Apply window crop on entering PiP transition" into sc-dev am: 5722117d am: e9ce9e20

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13418973

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4ca6a2060abdbce18a6cd173af64403ce9482d0d
parents fee9efc4 e9ce9e20
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -469,6 +469,11 @@ public class PipAnimationController {
                    getSurfaceTransactionHelper()
                    getSurfaceTransactionHelper()
                            .alpha(tx, leash, 1f)
                            .alpha(tx, leash, 1f)
                            .round(tx, leash, shouldApplyCornerRadius());
                            .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.show(leash);
                    tx.apply();
                    tx.apply();
                }
                }