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

Commit 2dcc35ab authored by Robert Carr's avatar Robert Carr Committed by android-build-merger
Browse files

Allow seamless rotation before mTopIsFullscreen is set.

am: 1ccd4251

Change-Id: I52b5d288993a4fbf5b265f32e238b40a4b68f8d6
parents fa35f82d 1ccd4251
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7830,7 +7830,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
        // 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 (w != null  && mTopIsFullscreen && !w.isAnimatingLw() &&
        if (w != null && !w.isAnimatingLw() &&
                ((w.getAttrs().rotationAnimation == ROTATION_ANIMATION_JUMPCUT) ||
                        (w.getAttrs().rotationAnimation == ROTATION_ANIMATION_SEAMLESS))) {
            return true;