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

Commit fef17446 authored by Andrea Arcangeli's avatar Andrea Arcangeli Committed by Steve Kondik
Browse files

resume: fix recents showing up when waking the device with the home button

Screen is on but dispatcher is not enabled yet.

Change-Id: Ib98d595563ed3df5c7a1e6e4d5a4da83a721537c
parent b8e5b491
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -251,7 +251,7 @@ void InputDispatcher::dispatchOnceInnerLocked(nsecs_t* nextWakeupTime) {
    // Reset the key repeat timer whenever we disallow key events, even if the next event
    // is not a key.  This is to ensure that we abort a key repeat if the device is just coming
    // out of sleep.
    if (!mPolicy->isKeyRepeatEnabled()) {
    if (!mPolicy->isKeyRepeatEnabled() || !mDispatchEnabled) {
        resetKeyRepeatLocked();
    }