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

Commit 58f58f3b authored by Robert Carr's avatar Robert Carr Committed by android-build-merger
Browse files

Allow seamless rotation before mTopIsFullscreen is set. am: 1ccd4251

am: 2dcc35ab

Change-Id: If41b31858f38e7c9c8a400ee4d25958f2adf947b
parents ced62ea3 2dcc35ab
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;