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

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I63fbe7c7c7c8d644c539f6f1348f47bcf02e0546
This commit is contained in:
TreeHugger Robot
2021-01-28 22:36:09 +00:00
committed by Automerger Merge Worker

View File

@@ -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();
} }