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

Commit d0198af6 authored by gaoshang's avatar gaoshang Committed by android-build-merger
Browse files

Merge "use more correct case condition when consume input"

am: 050861f9

Change-Id: I8124f5403b5d6caf9582995c10664dee118021fe
parents 84548cfb 050861f9
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -446,7 +446,7 @@ status_t InputConsumer::consume(InputEventFactoryInterface* factory,
            break;
            break;
        }
        }


        case AINPUT_EVENT_TYPE_MOTION: {
        case InputMessage::TYPE_MOTION: {
            ssize_t batchIndex = findBatch(mMsg.body.motion.deviceId, mMsg.body.motion.source);
            ssize_t batchIndex = findBatch(mMsg.body.motion.deviceId, mMsg.body.motion.source);
            if (batchIndex >= 0) {
            if (batchIndex >= 0) {
                Batch& batch = mBatches.editItemAt(batchIndex);
                Batch& batch = mBatches.editItemAt(batchIndex);