Loading services/core/java/com/android/server/policy/WindowOrientationListener.java +7 −1 Original line number Diff line number Diff line Loading @@ -1047,8 +1047,14 @@ public abstract class WindowOrientationListener { @Override public void onSensorChanged(SensorEvent event) { int newRotation; int reportedRotation = (int) event.values[0]; if (reportedRotation < 0 || reportedRotation > 3) { return; } synchronized (mLock) { mDesiredRotation = (int) event.values[0]; mDesiredRotation = reportedRotation; newRotation = evaluateRotationChangeLocked(); } if (newRotation >=0) { Loading Loading
services/core/java/com/android/server/policy/WindowOrientationListener.java +7 −1 Original line number Diff line number Diff line Loading @@ -1047,8 +1047,14 @@ public abstract class WindowOrientationListener { @Override public void onSensorChanged(SensorEvent event) { int newRotation; int reportedRotation = (int) event.values[0]; if (reportedRotation < 0 || reportedRotation > 3) { return; } synchronized (mLock) { mDesiredRotation = (int) event.values[0]; mDesiredRotation = reportedRotation; newRotation = evaluateRotationChangeLocked(); } if (newRotation >=0) { Loading