From 6b07b7231aee8059536be70b8237aa04f9fbded8 Mon Sep 17 00:00:00 2001 From: codeworkx Date: Sat, 7 Jul 2012 14:21:50 +0200 Subject: input: fix recents opening when waking the device with the home button without lockscreen Contributed by Andrea Arcangeli Change-Id: I8fe581ae51b38b65540eaefba6c051101fd63021 --- services/input/InputDispatcher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/input/InputDispatcher.cpp b/services/input/InputDispatcher.cpp index 652166d..0dad55a 100644 --- a/services/input/InputDispatcher.cpp +++ b/services/input/InputDispatcher.cpp @@ -265,7 +265,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(); } -- cgit v1.1