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

Commit 606f4d5d authored by Robert Carr's avatar Robert Carr
Browse files

Disable seamless rotation while animating.

Neither the animation code or the seamless rotation
code is equipped to handle it.

Bug: 28838855
Change-Id: Id3739bbc4335936cf3647af4ff97dd4efc134b65
parent fd10cd19
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -7685,7 +7685,12 @@ public class PhoneWindowManager implements WindowManagerPolicy {
            return false;
        }

        // We only enable seamless rotation if the top window has requested
        // it and is in the fullscreen opaque state. Seamless rotation
        // requires freezing various Surface states and won't work well
        // with animations, so we disable it in the animation case for now.
        if (mTopFullscreenOpaqueWindowState != null && mTopIsFullscreen &&
                !mTopFullscreenOpaqueWindowState.isAnimatingLw() &&
                mTopFullscreenOpaqueWindowState.getAttrs().rotationAnimation ==
                ROTATION_ANIMATION_JUMPCUT) {
            return true;