summaryrefslogtreecommitdiffstats
path: root/libs/ui
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2011-06-28 20:08:48 -0700
committerJeff Brown <jeffbrown@google.com>2011-06-28 20:10:40 -0700
commit8134681b25dfff814ffeaad8ff70e84316c1869f (patch)
treef18a057883c84db1dddd63767dff0b226d8a3e43 /libs/ui
parent53ca3f13e70fda98aa9f39bb0c15afaf435e3904 (diff)
downloadframeworks_base-8134681b25dfff814ffeaad8ff70e84316c1869f.zip
frameworks_base-8134681b25dfff814ffeaad8ff70e84316c1869f.tar.gz
frameworks_base-8134681b25dfff814ffeaad8ff70e84316c1869f.tar.bz2
Improve input event consistency invariants.
Fixed some issues where inconsistent streams of events could be generated by the dispatcher, particularly when switching from hovering with one device to hovering with another. Fixed a bug where the touch pad would fail to generate a new HOVER_MOVE following a tap event. As a result, the hover event stream would not resume until the user touched the touch pad again. Change-Id: I444dce84641fb12e56a0af84c931520771d6c493
Diffstat (limited to 'libs/ui')
-rw-r--r--libs/ui/InputTransport.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/ui/InputTransport.cpp b/libs/ui/InputTransport.cpp
index ffdfe66..c46d6f4 100644
--- a/libs/ui/InputTransport.cpp
+++ b/libs/ui/InputTransport.cpp
@@ -443,7 +443,8 @@ status_t InputPublisher::appendMotionSample(
if (! mPinned || ! mMotionEventSampleDataTail) {
LOGE("channel '%s' publisher ~ Cannot append motion sample because there is no current "
- "AMOTION_EVENT_ACTION_MOVE event.", mChannel->getName().string());
+ "AMOTION_EVENT_ACTION_MOVE or AMOTION_EVENT_ACTION_HOVER_MOVE event.",
+ mChannel->getName().string());
return INVALID_OPERATION;
}