Merge "Rotation lock bugfix."

This commit is contained in:
Daniel Sandler
2010-11-05 17:41:35 +00:00
committed by Android (Google) Code Review

View File

@@ -686,7 +686,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
Settings.System.ACCELEROMETER_ROTATION, DEFAULT_ACCELEROMETER_ROTATION);
// set up rotation lock state
mUserRotationMode = (mAccelerometerDefault == 0)
mUserRotationMode = (accelerometerDefault == 0)
? WindowManagerPolicy.USER_ROTATION_LOCKED
: WindowManagerPolicy.USER_ROTATION_FREE;
mUserRotation = Settings.System.getInt(resolver,