summaryrefslogtreecommitdiffstats
path: root/recovery.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-04-10 22:26:52 +0200
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-04-10 22:26:53 +0200
commit5d1630a926a02ca13a66eb1e385eabba16b04cfc (patch)
tree7e8d33676678e2240d5368fca8465712b24285cd /recovery.cpp
parentMerge "Move "Mount /system" to the main menu." (diff)
parentFix ScreenRecoveryUI to handle devices without power/up/down. (diff)
downloadandroid_bootable_recovery-5d1630a926a02ca13a66eb1e385eabba16b04cfc.tar
android_bootable_recovery-5d1630a926a02ca13a66eb1e385eabba16b04cfc.tar.gz
android_bootable_recovery-5d1630a926a02ca13a66eb1e385eabba16b04cfc.tar.bz2
android_bootable_recovery-5d1630a926a02ca13a66eb1e385eabba16b04cfc.tar.lz
android_bootable_recovery-5d1630a926a02ca13a66eb1e385eabba16b04cfc.tar.xz
android_bootable_recovery-5d1630a926a02ca13a66eb1e385eabba16b04cfc.tar.zst
android_bootable_recovery-5d1630a926a02ca13a66eb1e385eabba16b04cfc.zip
Diffstat (limited to 'recovery.cpp')
-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;