From e3e11a77ccb2fc23c55a868df482fa738315cb0c Mon Sep 17 00:00:00 2001 From: gaoshang Date: Tue, 8 Aug 2017 16:11:31 +0800 Subject: 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 --- libs/input/InputTransport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3-59-g8ed1b