summaryrefslogtreecommitdiffstats
path: root/recovery.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-04-10 21:47:46 +0200
committerElliott Hughes <enh@google.com>2015-04-10 21:47:46 +0200
commit642aaa7a3e11b2de719fc9decc45174bcc235c0c (patch)
tree7e8d33676678e2240d5368fca8465712b24285cd /recovery.cpp
parentMerge "Move "Mount /system" to the main menu." (diff)
downloadandroid_bootable_recovery-642aaa7a3e11b2de719fc9decc45174bcc235c0c.tar
android_bootable_recovery-642aaa7a3e11b2de719fc9decc45174bcc235c0c.tar.gz
android_bootable_recovery-642aaa7a3e11b2de719fc9decc45174bcc235c0c.tar.bz2
android_bootable_recovery-642aaa7a3e11b2de719fc9decc45174bcc235c0c.tar.lz
android_bootable_recovery-642aaa7a3e11b2de719fc9decc45174bcc235c0c.tar.xz
android_bootable_recovery-642aaa7a3e11b2de719fc9decc45174bcc235c0c.tar.zst
android_bootable_recovery-642aaa7a3e11b2de719fc9decc45174bcc235c0c.zip
Diffstat (limited to '')
-rw-r--r--recovery.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/recovery.cpp b/recovery.cpp
index cdbb598e3..43a42eab8 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -545,12 +545,10 @@ get_menu_selection(const char* const * headers, const char* const * items,
if (action < 0) {
switch (action) {
case Device::kHighlightUp:
- --selected;
- selected = ui->SelectMenu(selected);
+ selected = ui->SelectMenu(--selected);
break;
case Device::kHighlightDown:
- ++selected;
- selected = ui->SelectMenu(selected);
+ selected = ui->SelectMenu(++selected);
break;
case Device::kInvokeItem:
chosen_item = selected;