summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Daniel Sandler <dsandler@google.com> 2010-11-05 10:24:27 -0400
committer Daniel Sandler <dsandler@google.com> 2010-11-05 10:24:27 -0400
commit1b815d68053394463df3822c49e377308ca73cca (patch)
tree55258db26d2c23326da973019c63db521ed6803b
parent63cf0279d73937f38def42eeb0ef8278c926e448 (diff)
Rotation lock bugfix.
We were using a stale version of the accelerometer rotation setting when figuring out what the current rotation lock state is. Change-Id: I7780617c875a8f6c9697e829642f86f9f664df89
-rwxr-xr-xpolicy/src/com/android/internal/policy/impl/PhoneWindowManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
index 2f2f94340159..bad96844bbad 100755
--- a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
+++ b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
@@ -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,