OSDN Git Service

fw/b: Return a KeyEvent instead of a boolean in KeyHandler
authorPaul Keith <javelinanddart@gmail.com>
Thu, 23 Nov 2017 20:47:51 +0000 (21:47 +0100)
committerMichael Bestas <mkbestas@lineageos.org>
Sun, 26 Nov 2017 22:08:45 +0000 (22:08 +0000)
commitbf13e8bba7fce725bd38850107024574d904c351
treee0cfe0b506252ae2bd20448b8bec30af5c1b29b7
parentc6e169fee348b91e4a0d945209fbd7793f7d30e0
fw/b: Return a KeyEvent instead of a boolean in KeyHandler

* Allows handlers to modify the event before sending it off
  to another KeyHandler class, to handle things like rotation

Change-Id: I481107e050f6323c5897260a5d241e64b4e031ac
core/java/com/android/internal/os/DeviceKeyHandler.java
services/core/java/com/android/server/policy/PhoneWindowManager.java