summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2012-01-18 22:46:26 +0100
committerDoug Zongker <dougz@android.com>2012-01-19 00:15:39 +0100
commit48b5b0737c127a049bf16f9c69926c4da8668112 (patch)
tree92e4aeda2e0db36e09be25eef8d239983411309f
parentalways initialize usb product, vendor, etc. for adb in recovery (diff)
downloadandroid_bootable_recovery-48b5b0737c127a049bf16f9c69926c4da8668112.tar
android_bootable_recovery-48b5b0737c127a049bf16f9c69926c4da8668112.tar.gz
android_bootable_recovery-48b5b0737c127a049bf16f9c69926c4da8668112.tar.bz2
android_bootable_recovery-48b5b0737c127a049bf16f9c69926c4da8668112.tar.lz
android_bootable_recovery-48b5b0737c127a049bf16f9c69926c4da8668112.tar.xz
android_bootable_recovery-48b5b0737c127a049bf16f9c69926c4da8668112.tar.zst
android_bootable_recovery-48b5b0737c127a049bf16f9c69926c4da8668112.zip
-rw-r--r--ui.cpp3
-rw-r--r--ui.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/ui.cpp b/ui.cpp
index fd370a79f..bd0fcae62 100644
--- a/ui.cpp
+++ b/ui.cpp
@@ -123,6 +123,9 @@ void RecoveryUI::process_key(int key_code, int updown) {
if (register_key) {
switch (CheckKey(key_code)) {
+ case RecoveryUI::IGNORE:
+ break;
+
case RecoveryUI::TOGGLE:
ShowText(!IsTextVisible());
break;
diff --git a/ui.h b/ui.h
index 750b99333..0d3b7bb98 100644
--- a/ui.h
+++ b/ui.h
@@ -73,7 +73,7 @@ class RecoveryUI {
// Return value indicates whether an immediate operation should be
// triggered (toggling the display, rebooting the device), or if
// the key should be enqueued for use by the main thread.
- enum KeyAction { ENQUEUE, TOGGLE, REBOOT };
+ enum KeyAction { ENQUEUE, TOGGLE, REBOOT, IGNORE };
virtual KeyAction CheckKey(int key);
// --- menu display ---