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

This commit is contained in:
TreeHugger Robot
2021-01-28 21:40:15 +00:00
committed by Android (Google) Code Review

View File

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