Fix more of bug 2290852: Don't wake screen when bluetooth headset is connected or disconnected.

This fixes another case where the screen would turn on when the keyguard is open but hidden by another activity.

Change-Id: I2b7c8a329036401709e96ded4f4c138041192a71
Signed-off-by: Mike Lockwood <lockwood@android.com>
This commit is contained in:
Mike Lockwood
2009-11-30 14:51:51 -05:00
parent f817218e09
commit 5db4240012

View File

@@ -6397,7 +6397,9 @@ public class WindowManagerService extends IWindowManager.Stub
// 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,