diff options
| author | 2010-11-01 21:02:05 -0700 | |
|---|---|---|
| committer | 2010-11-01 21:02:05 -0700 | |
| commit | 5d0a9b474bb8a082691a185d4b574b619f54fc05 (patch) | |
| tree | 099de02f30b1ddb6f6ef7158b3c7abc060aaaa6f | |
| parent | fbadab90662aab1304444ff99ba6600b595a200e (diff) | |
| parent | f6149c3229529ed2ea1334e6bab6e1df2c86a4ba (diff) | |
am a87ea46c: Fix bugs related to cheek event suppression.
* commit 'a87ea46cb023763e0a9b0222da20b0a354f79d8d':
Fix bugs related to cheek event suppression.
| -rw-r--r-- | libs/ui/InputDispatcher.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ui/InputDispatcher.cpp b/libs/ui/InputDispatcher.cpp index ae81d2615e..c0b27fe2cc 100644 --- a/libs/ui/InputDispatcher.cpp +++ b/libs/ui/InputDispatcher.cpp @@ -51,8 +51,8 @@ namespace android { -// Delay between reporting long touch events to the power manager. -const nsecs_t EVENT_IGNORE_DURATION = 300 * 1000000LL; // 300 ms +// Delay before reporting long touch events to the power manager. +const nsecs_t LONG_TOUCH_DELAY = 300 * 1000000LL; // 300 ms // Default input dispatching timeout if there is no focused application or paused window // from which to determine an appropriate dispatching timeout. @@ -1416,7 +1416,7 @@ void InputDispatcher::pokeUserActivityLocked(const EventEntry* eventEntry) { eventType = POWER_MANAGER_TOUCH_UP_EVENT; break; default: - if (motionEntry->eventTime - motionEntry->downTime >= EVENT_IGNORE_DURATION) { + if (motionEntry->eventTime - motionEntry->downTime < LONG_TOUCH_DELAY) { eventType = POWER_MANAGER_TOUCH_EVENT; } else { eventType = POWER_MANAGER_LONG_TOUCH_EVENT; |