aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Bestas <mikeioannina@cyanogenmod.org>2016-03-28 19:09:18 +0300
committerMichael Bestas <mikeioannina@cyanogenmod.org>2016-03-28 19:09:18 +0300
commit17102a270ddc8a50552a69d4cbd0348741c64f11 (patch)
tree333707f5c4e4ca6bea7e0077d6ed4aec7a188c9f
parentb7fb1853f2bd2683c793dfe4b53704f3c631511d (diff)
downloadbootable_recovery-17102a270ddc8a50552a69d4cbd0348741c64f11.zip
bootable_recovery-17102a270ddc8a50552a69d4cbd0348741c64f11.tar.gz
bootable_recovery-17102a270ddc8a50552a69d4cbd0348741c64f11.tar.bz2
ui: Also detect KEY_HOME
* KEY_HOME is used in a lot of devices instead of KEY_HOMEPAGE Change-Id: I18ec415b4d7e5e1f97a88640b820c64dbc8bb634
-rw-r--r--ui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui.cpp b/ui.cpp
index d28ede5..d1eca91 100644
--- a/ui.cpp
+++ b/ui.cpp
@@ -162,7 +162,7 @@ void RecoveryUI::OnKeyDetected(int key_code) {
} else if (key_code == KEY_BACK) {
has_back_key = true;
LOGI("Detected back key, disabling virtual back button\n");
- } else if (key_code == KEY_HOMEPAGE) {
+ } else if (key_code == KEY_HOMEPAGE || key_code == KEY_HOME) {
has_home_key = true;
LOGI("Detected home key, disabling virtual home button\n");
}