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

Commit 693f4e78 authored by Evan Rosky's avatar Evan Rosky
Browse files

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
parent 19f7d988
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)