Skip to content

Commit

Permalink
Revert "PhoneWindowManager: Check if proposed rotation is in range"
Browse files Browse the repository at this point in the history
* This was accidentally merged

This reverts commit 4262768.

Change-Id: I4ab51c626040ea0e89d99ac61c6570f46e4a38ce
  • Loading branch information
haggertk authored and bgcngm committed Dec 12, 2018
1 parent 6c4a405 commit fc7020f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -7998,7 +7998,7 @@ public int rotationForOrientationLw(int orientation, int lastRotation, boolean d

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

Expand Down
Expand Up @@ -1084,7 +1084,7 @@ public void resetLocked(boolean clearCurrentRotation) {

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

0 comments on commit fc7020f

Please sign in to comment.