summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2012-01-18 23:02:41 +0100
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-01-18 23:02:41 +0100
commit45fdb3899dfc1986290667f4a33f3088f0d80aab (patch)
treeb69dc671e0cfc5a7076cf4220291e65ca977cab5
parentsupport "sideload over ADB" mode (diff)
parentallow recovery UI to ignore certain keypresses (diff)
downloadandroid_bootable_recovery-45fdb3899dfc1986290667f4a33f3088f0d80aab.tar
android_bootable_recovery-45fdb3899dfc1986290667f4a33f3088f0d80aab.tar.gz
android_bootable_recovery-45fdb3899dfc1986290667f4a33f3088f0d80aab.tar.bz2
android_bootable_recovery-45fdb3899dfc1986290667f4a33f3088f0d80aab.tar.lz
android_bootable_recovery-45fdb3899dfc1986290667f4a33f3088f0d80aab.tar.xz
android_bootable_recovery-45fdb3899dfc1986290667f4a33f3088f0d80aab.tar.zst
android_bootable_recovery-45fdb3899dfc1986290667f4a33f3088f0d80aab.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 ---