summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author gaoshang <gaoshang@xiaomi.com> 2017-08-08 16:11:31 +0800
committer gaoshang <gaoshang@xiaomi.com> 2017-08-08 16:11:31 +0800
commite3e11a77ccb2fc23c55a868df482fa738315cb0c (patch)
treedbe621bab44123ff355072f5a4d4b4cf36bfb794
parent219b580fed7916ed4e02dd634e003073f91c6b93 (diff)
use more correct case condition when consume input
InputMessage::TYPE_MOTION instead of AINPUT_EVENT_TYPE_MOTION Although these two values are the same Test: input Change-Id: Ic1478cf2a5ef1706844d89428ef3a7e999877bcc Signed-off-by: gaoshang <gaoshang@xiaomi.com>
-rw-r--r--libs/input/InputTransport.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/input/InputTransport.cpp b/libs/input/InputTransport.cpp
index 293bc25ab5..8b3a1d0d4e 100644
--- a/libs/input/InputTransport.cpp
+++ b/libs/input/InputTransport.cpp
@@ -446,7 +446,7 @@ status_t InputConsumer::consume(InputEventFactoryInterface* factory,
break;
}
- case AINPUT_EVENT_TYPE_MOTION: {
+ case InputMessage::TYPE_MOTION: {
ssize_t batchIndex = findBatch(mMsg.body.motion.deviceId, mMsg.body.motion.source);
if (batchIndex >= 0) {
Batch& batch = mBatches.editItemAt(batchIndex);