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

Commit 31ecbdc5 authored by Roman Birg's avatar Roman Birg
Browse files

KeyHandler: don't break old interfaces



Causing bootloops on devices, don't break old interfaces in the
framework.

OPO-427

Change-Id: I49473b057bc4ed4710e9092c76e41c6a8134d2de
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>
parent 4c994ce2
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -15,6 +15,15 @@ import android.view.KeyEvent;

public interface DeviceKeyHandler {

    /**
     * Invoked when an unknown key was detected by the system, letting the device handle
     * this special keys prior to pass the key to the active app.
     *
     * @param event The key event to be handled
     * @return If the event is consume
     */
    public boolean handleKeyEvent(KeyEvent event);

    /**
     * Invoked when an unknown key was detected by the system, letting the device handle
     * this special keys prior to pass the key to the active app.