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

Commit fc7020f6 authored by Kevin F. Haggerty's avatar Kevin F. Haggerty Committed by Bruno Martins
Browse files

Revert "PhoneWindowManager: Check if proposed rotation is in range"

* This was accidentally merged

This reverts commit 4262768f.

Change-Id: I4ab51c626040ea0e89d99ac61c6570f46e4a38ce
parent 6c4a4059
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7998,7 +7998,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {

        synchronized (mLock) {
            int sensorRotation = mOrientationListener.getProposedRotation(); // may be -1
            if (sensorRotation < 0 || sensorRotation > 3) {
            if (sensorRotation < 0) {
                sensorRotation = lastRotation;
            }

+1 −1
Original line number Diff line number Diff line
@@ -1084,7 +1084,7 @@ public abstract class WindowOrientationListener {

        public int evaluateRotationChangeLocked() {
            unscheduleRotationEvaluationLocked();
            if (mDesiredRotation == mProposedRotation || mDesiredRotation > 3) {
            if (mDesiredRotation == mProposedRotation) {
                return -1;
            }
            final long now = SystemClock.elapsedRealtimeNanos();