Skip to content

Commit

Permalink
KeyHandler: don't break old interfaces
Browse files Browse the repository at this point in the history
Causing bootloops on devices, don't break old interfaces in the
framework.

OPO-427

Change-Id: I49473b057bc4ed4710e9092c76e41c6a8134d2de
Signed-off-by: Roman Birg <[email protected]>
  • Loading branch information
romanbb committed Feb 14, 2016
1 parent 4c994ce commit 31ecbdc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions core/java/com/android/internal/os/DeviceKeyHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@

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.
Expand Down

0 comments on commit 31ecbdc

Please sign in to comment.