diff options
author | Doug Zongker <dougz@android.com> | 2012-01-18 22:46:26 +0100 |
---|---|---|
committer | Doug Zongker <dougz@android.com> | 2012-01-18 22:46:26 +0100 |
commit | 336a9949c47eaead7cbedec118dd15e84e26f523 (patch) | |
tree | d588219ac6183610f668b8c363126f4a1f171c23 | |
parent | fix verifier test (diff) | |
download | android_bootable_recovery-336a9949c47eaead7cbedec118dd15e84e26f523.tar android_bootable_recovery-336a9949c47eaead7cbedec118dd15e84e26f523.tar.gz android_bootable_recovery-336a9949c47eaead7cbedec118dd15e84e26f523.tar.bz2 android_bootable_recovery-336a9949c47eaead7cbedec118dd15e84e26f523.tar.lz android_bootable_recovery-336a9949c47eaead7cbedec118dd15e84e26f523.tar.xz android_bootable_recovery-336a9949c47eaead7cbedec118dd15e84e26f523.tar.zst android_bootable_recovery-336a9949c47eaead7cbedec118dd15e84e26f523.zip |
Diffstat (limited to '')
-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 --- |