diff options
author | Doug Zongker <dougz@android.com> | 2012-01-18 23:02:41 +0100 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-01-18 23:02:41 +0100 |
commit | 45fdb3899dfc1986290667f4a33f3088f0d80aab (patch) | |
tree | b69dc671e0cfc5a7076cf4220291e65ca977cab5 | |
parent | support "sideload over ADB" mode (diff) | |
parent | allow recovery UI to ignore certain keypresses (diff) | |
download | android_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.cpp | 3 | ||||
-rw-r--r-- | ui.h | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -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; @@ -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 --- |