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

Commit 37aa1022 authored by Paul Keith's avatar Paul Keith
Browse files

CMParts: gestures: Update KeyHandler for API change

Change-Id: I634515294995efd66d6e9479fde08c4164097e41
parent ed7905db
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -147,10 +147,10 @@ public class KeyHandler implements DeviceKeyHandler {
        }
    }

    public boolean handleKeyEvent(final KeyEvent event) {
    public KeyEvent handleKeyEvent(final KeyEvent event) {
        final int action = mActionMapping.get(event.getScanCode(), -1);
        if (action < 0 || event.getAction() != KeyEvent.ACTION_UP || !hasSetupCompleted()) {
            return false;
            return event;
        }

        if (action != 0 && !mEventHandler.hasMessages(GESTURE_REQUEST)) {
@@ -167,7 +167,7 @@ public class KeyHandler implements DeviceKeyHandler {
            }
        }

        return true;
        return null;
    }

    private boolean hasSetupCompleted() {