Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5db42400 authored by Mike Lockwood's avatar Mike Lockwood
Browse files

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: default avatarMike Lockwood <lockwood@android.com>
parent f817218e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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,