Merge "Apply window crop on entering PiP transition" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
5722117dcb
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user