Merge change I2b7c8a32 into eclair
* changes:
Fix more of bug 2290852: Don't wake screen when bluetooth headset is connected or disconnected.
diff --git a/services/java/com/android/server/WindowManagerService.java b/services/java/com/android/server/WindowManagerService.java
index b4db7bc..44c9f0f 100644
--- a/services/java/com/android/server/WindowManagerService.java
+++ b/services/java/com/android/server/WindowManagerService.java
@@ -6397,7 +6397,9 @@
// Ignore
}
- if (eventType != TOUCH_EVENT
+ if (ev.classType == RawInputEvent.CLASS_CONFIGURATION_CHANGED) {
+ // do not wake screen in this case
+ } else if (eventType != TOUCH_EVENT
&& eventType != LONG_TOUCH_EVENT
&& eventType != CHEEK_EVENT) {
mPowerManager.userActivity(curTime, false,