diff options
author | Michael Bestas <mikeioannina@cyanogenmod.org> | 2016-03-28 19:09:18 +0300 |
---|---|---|
committer | Michael Bestas <mikeioannina@cyanogenmod.org> | 2016-03-28 19:09:18 +0300 |
commit | 17102a270ddc8a50552a69d4cbd0348741c64f11 (patch) | |
tree | 333707f5c4e4ca6bea7e0077d6ed4aec7a188c9f | |
parent | b7fb1853f2bd2683c793dfe4b53704f3c631511d (diff) | |
download | bootable_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.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); } |