diff options
author | Masanori Ogino <ogino.masanori@sharp.co.jp> | 2012-03-07 16:25:16 +0900 |
---|---|---|
committer | Jean-Baptiste Queru <jbq@google.com> | 2012-05-01 13:02:06 -0700 |
commit | c362f0cd507953baef9f295a514de0a58d5ccd31 (patch) | |
tree | dc0e29afa09a1c7d7f71204030e1f17bd6d472cc /policy | |
parent | 93a8225e54da124807734ff8e4c7790158d06b7c (diff) | |
download | frameworks_base-c362f0cd507953baef9f295a514de0a58d5ccd31.zip frameworks_base-c362f0cd507953baef9f295a514de0a58d5ccd31.tar.gz frameworks_base-c362f0cd507953baef9f295a514de0a58d5ccd31.tar.bz2 |
Lid switch state is incorrect
InputManager#getSwitchState() returns AKEY_STATE_UP(0=OPEN)
and AKEY_STATE_DOWN(1=CLOSE).
mLidOpen is opposite from a real lid status.
Change-Id: I40aa4e0defb95d82b6144ff6b7514f721bf9030f
Diffstat (limited to 'policy')
-rwxr-xr-x | policy/src/com/android/internal/policy/impl/PhoneWindowManager.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java index 0de76a7..7923709 100755 --- a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java +++ b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java @@ -1083,9 +1083,9 @@ public class PhoneWindowManager implements WindowManagerPolicy { try { int sw = mWindowManager.getSwitchState(SW_LID); if (sw > 0) { - mLidOpen = LID_OPEN; - } else if (sw == 0) { mLidOpen = LID_CLOSED; + } else if (sw == 0) { + mLidOpen = LID_OPEN; } else { mLidOpen = LID_ABSENT; } |