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

Commit 7c54349d 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

am: 58f58f3b

Change-Id: Id3a206921901b7ed24e43753342bcbf29d43f862
parents f81e0df3 58f58f3b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7836,7 +7836,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;