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

Commit 75ebb37f authored by Michael Wright's avatar Michael Wright
Browse files

Add APP_SWITCH to app switch input dispatching optimization

Change-Id: I8a95fbf311ebd62bcdaaeecfacaea7996ddaec74
parent 765ddb4b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -538,7 +538,9 @@ void InputDispatcher::dropInboundEventLocked(EventEntry* entry, DropReason dropR
}

bool InputDispatcher::isAppSwitchKeyCode(int32_t keyCode) {
    return keyCode == AKEYCODE_HOME || keyCode == AKEYCODE_ENDCALL;
    return keyCode == AKEYCODE_HOME
            || keyCode == AKEYCODE_ENDCALL
            || keyCode == AKEYCODE_APP_SWITCH;
}

bool InputDispatcher::isAppSwitchKeyEventLocked(KeyEntry* keyEntry) {