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

Commit 08dec6cf authored by Antonio Kantek's avatar Antonio Kantek Committed by Android (Google) Code Review
Browse files

Merge "TouchMode (4.2/n) Enhancing recycle to support touch mode event"

parents aa561d16 eb4a30c4
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -968,6 +968,13 @@ void PooledInputEventFactory::recycle(InputEvent* event) {
            return;
        }
        break;
    case AINPUT_EVENT_TYPE_TOUCH_MODE:
        if (mTouchModeEventPool.size() < mMaxPoolSize) {
            mTouchModeEventPool.push(
                    std::unique_ptr<TouchModeEvent>(static_cast<TouchModeEvent*>(event)));
            return;
        }
        break;
    }
    delete event;
}