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

Commit 1bb1eb01 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Negate condition to reduce nesting in InputDispatcher"

parents 4c2eda54 f557dcf1
Loading
Loading
Loading
Loading
+132 −130
Original line number Diff line number Diff line
@@ -4024,7 +4024,10 @@ void InputDispatcher::doDispatchCycleFinishedLockedInterruptible(

bool InputDispatcher::afterKeyEventLockedInterruptible(const sp<Connection>& connection,
        DispatchEntry* dispatchEntry, KeyEntry* keyEntry, bool handled) {
    if (!(keyEntry->flags & AKEY_EVENT_FLAG_FALLBACK)) {
    if (keyEntry->flags & AKEY_EVENT_FLAG_FALLBACK) {
        return false;
    }

    // Get the fallback key state.
    // Clear it out after dispatching the UP.
    int32_t originalKeyCode = keyEntry->keyCode;
@@ -4191,7 +4194,6 @@ bool InputDispatcher::afterKeyEventLockedInterruptible(const sp<Connection>& con
#endif
        }
    }
    }
    return false;
}