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

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

Only allow focused window to select seamless rotation.

am: 828ec3dc

Change-Id: I617dbf02a81a004a38ec3b1da1381ae0497f64ba
parents ddca04dc 828ec3dc
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -7828,6 +7828,9 @@ public class PhoneWindowManager implements WindowManagerPolicy {
        }

        final WindowState w = mTopFullscreenOpaqueWindowState;
        if (w != mFocusedWindow) {
            return false;
        }

        // We only enable seamless rotation if the top window has requested
        // it and is in the fullscreen opaque state. Seamless rotation