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

Commit e9ce9e20 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

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I63fbe7c7c7c8d644c539f6f1348f47bcf02e0546
parents af9c5911 5722117d
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();
                }
                }