diff options
author | codeworkx <daniel.hillenbrand@codeworkx.de> | 2012-07-07 14:21:50 +0200 |
---|---|---|
committer | codeworkx <daniel.hillenbrand@codeworkx.de> | 2012-07-07 14:21:50 +0200 |
commit | 6b07b7231aee8059536be70b8237aa04f9fbded8 (patch) | |
tree | c2dac2f27bb562a1c86810c3290d9f11d2c4235b | |
parent | 7494abb1218f4a493508040f892e9aefb5bb36d1 (diff) | |
download | frameworks_base-6b07b7231aee8059536be70b8237aa04f9fbded8.zip frameworks_base-6b07b7231aee8059536be70b8237aa04f9fbded8.tar.gz frameworks_base-6b07b7231aee8059536be70b8237aa04f9fbded8.tar.bz2 |
input: fix recents opening when waking the device with the home button without lockscreen
Contributed by Andrea Arcangeli <andrea@cpushare.com>
Change-Id: I8fe581ae51b38b65540eaefba6c051101fd63021
-rw-r--r-- | services/input/InputDispatcher.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } |