summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Michael Wright <michaelwr@google.com> 2016-06-03 16:27:49 +0100
committer Michael Wright <michaelwr@google.com> 2016-06-03 16:31:28 +0100
commit21e39a2e0c15d74f148f244c64ca484ac8c08db1 (patch)
tree88e57bbc9c1ca1d61b8a002ec827cdfd2e9baf1a
parent88be465ce572f84649e01744a7ec96b6346b3686 (diff)
Make lid switch edge rather than level triggered.
Right now, because of the way that configurations are applied, when the display turns on because of an incoming phone call the fact that the lid is "shut" will automatically put the phone back to sleep, causing the ringer to be silenced. By making this edge triggered, the display will only sleep or wake up when the lid is initially shut or opened, respectively, avoiding this issue. In the future we may want to revise this so that the lid-shut state is better understood throughout the system to avoid these types of issues, but for now this is sufficient. Bug: 26600446 Change-Id: I10d403b62944ed6eceaff58cddad5c243a2884df
-rw-r--r--services/core/java/com/android/server/policy/PhoneWindowManager.java1
1 files changed, 0 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/policy/PhoneWindowManager.java b/services/core/java/com/android/server/policy/PhoneWindowManager.java
index 66bb24d02de4..c9c27a2a6c97 100644
--- a/services/core/java/com/android/server/policy/PhoneWindowManager.java
+++ b/services/core/java/com/android/server/policy/PhoneWindowManager.java
@@ -2262,7 +2262,6 @@ public class PhoneWindowManager implements WindowManagerPolicy {
readConfigurationDependentBehaviors();
readLidState();
- applyLidSwitchState();
if (config.keyboard == Configuration.KEYBOARD_NOKEYS
|| (keyboardPresence == PRESENCE_INTERNAL