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

Commit 412b7222 authored by Prabir Pradhan's avatar Prabir Pradhan Committed by Android (Google) Code Review
Browse files

Merge "InputDispatcher: Check for normal connection for consistency" into main

parents 4bdf1a14 98ca4a2b
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -3856,8 +3856,7 @@ void InputDispatcher::finishDispatchCycleLocked(nsecs_t currentTime,
              connection->getInputChannelName().c_str(), seq, toString(handled));
    }

    if (connection->status == Connection::Status::BROKEN ||
        connection->status == Connection::Status::ZOMBIE) {
    if (connection->status != Connection::Status::NORMAL) {
        return;
    }

@@ -4130,7 +4129,7 @@ void InputDispatcher::synthesizeCancelationEventsForConnectionLocked(
void InputDispatcher::synthesizePointerDownEventsForConnectionLocked(
        const nsecs_t downTime, const std::shared_ptr<Connection>& connection,
        ftl::Flags<InputTarget::Flags> targetFlags) {
    if (connection->status == Connection::Status::BROKEN) {
    if (connection->status != Connection::Status::NORMAL) {
        return;
    }