Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e3e11a77 authored by gaoshang's avatar gaoshang
Browse files

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: default avatargaoshang <gaoshang@xiaomi.com>
parent 219b580f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);