Switch pip to fixed-rotation in shell transitions

Pip fixed-rotation should also be active when shell-transitions
is using fixed-rotation.

Bug: 217560545
Test: enter landscape pippable, enter pip (eg. via swipe-to-home)
Change-Id: I9bfbc1efc230a94dd9a480195e3a6ddf712ab353
This commit is contained in:
Evan Rosky committed 2022-02-10 16:16:12 -08:00
1 parent 19f7d988d1
commit 693f4e78bb
1 file changed
+1 -1
@@ -278,7 +278,7 @@ public class SwipePipToHomeAnimator extends RectFSpringAnim {
private RotatedPosition getRotatedPosition(float progress) {
final float degree, positionX, positionY;
if (TaskAnimationManager.ENABLE_SHELL_TRANSITIONS) {
if (TaskAnimationManager.SHELL_TRANSITIONS_ROTATION) {
if (mFromRotation == Surface.ROTATION_90) {
degree = -90 * (1 - progress);
positionX = progress * (mDestinationBoundsTransformed.left - mStartBounds.left)