summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Sarraf <asarraf@codeaurora.org>2015-07-15 11:20:17 -0700
committerLinux Build Service Account <lnxbuild@localhost>2015-10-06 03:27:59 -0600
commitf022fdcf6aa000b0db78070209e51e2bddbfcc04 (patch)
tree180aaa698e477c4dfe92817f84d4131eef37a905
parentee09840e54d8e2353931b8b348f3e4e6b77c2928 (diff)
downloadframeworks_base-f022fdcf6aa000b0db78070209e51e2bddbfcc04.zip
frameworks_base-f022fdcf6aa000b0db78070209e51e2bddbfcc04.tar.gz
frameworks_base-f022fdcf6aa000b0db78070209e51e2bddbfcc04.tar.bz2
KeyEvent: Add support for Home key wakeup
Add Home key to list of wakeable buttons. Change-Id: Ic452e4bf262301527f83d6dbd9bbaad7aa20a13e
-rw-r--r--core/java/android/view/KeyEvent.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/java/android/view/KeyEvent.java b/core/java/android/view/KeyEvent.java
index a9bf92b..6888558 100644
--- a/core/java/android/view/KeyEvent.java
+++ b/core/java/android/view/KeyEvent.java
@@ -1828,6 +1828,7 @@ public class KeyEvent extends InputEvent implements Parcelable {
switch (keyCode) {
case KeyEvent.KEYCODE_BACK:
case KeyEvent.KEYCODE_MENU:
+ case KeyEvent.KEYCODE_HOME:
case KeyEvent.KEYCODE_WAKEUP:
case KeyEvent.KEYCODE_PAIRING:
return true;