Merge "Fix unexpected rotation change when re-enabling auto-rotate"
This commit is contained in:
@@ -98,6 +98,7 @@ public abstract class WindowOrientationListener {
|
||||
if (LOG) {
|
||||
Log.d(TAG, "WindowOrientationListener enabled");
|
||||
}
|
||||
mSensorEventListener.reset();
|
||||
mSensorManager.registerListener(mSensorEventListener, mSensor, mRate);
|
||||
mEnabled = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user