summaryrefslogtreecommitdiffstats
path: root/recovery.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-04-10 23:05:52 +0200
committerAndroid Git Automerger <android-git-automerger@android.com>2015-04-10 23:05:52 +0200
commit87835abd977faea04a6926a26eed300a2dbb12b3 (patch)
tree7e8d33676678e2240d5368fca8465712b24285cd /recovery.cpp
parentam c22f5774: am 6b0dd1d7: Merge "Move "Mount /system" to the main menu." (diff)
parentam 5d1630a9: Merge "Fix ScreenRecoveryUI to handle devices without power/up/down." (diff)
downloadandroid_bootable_recovery-87835abd977faea04a6926a26eed300a2dbb12b3.tar
android_bootable_recovery-87835abd977faea04a6926a26eed300a2dbb12b3.tar.gz
android_bootable_recovery-87835abd977faea04a6926a26eed300a2dbb12b3.tar.bz2
android_bootable_recovery-87835abd977faea04a6926a26eed300a2dbb12b3.tar.lz
android_bootable_recovery-87835abd977faea04a6926a26eed300a2dbb12b3.tar.xz
android_bootable_recovery-87835abd977faea04a6926a26eed300a2dbb12b3.tar.zst
android_bootable_recovery-87835abd977faea04a6926a26eed300a2dbb12b3.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;