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

Commit bda8650e authored by Rob Carr's avatar Rob Carr Committed by Android (Google) Code Review
Browse files

Merge "Disable seamless rotation when nav bar jumps."

parents 4452e751 0b9ac5a2
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -7922,6 +7922,12 @@ public class PhoneWindowManager implements WindowManagerPolicy {
        if (oldRotation == mUpsideDownRotation || newRotation == mUpsideDownRotation) {
            return false;
        }
        // If the navigation bar can't change sides, then it will
        // jump when we change orientations and we don't rotate
        // seamlessly.
        if (!mNavigationBarCanMove) {
            return false;
        }
        int delta = newRotation - oldRotation;
        if (delta < 0) delta += 4;
        // Likewise we don't rotate seamlessly for 180 degree rotations