summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-03-01 03:38:49 +0100
committerandroid-build-merger <android-build-merger@google.com>2017-03-01 03:38:49 +0100
commit7d524a440ff00f49b1d5b9f6c639f9140a362a35 (patch)
tree3457b870789e6048a8fe9367fbf53c6061c1d212
parentImport translations. DO NOT MERGE (diff)
parentMerge "recovery: Remember the last log position." am: d549616b24 (diff)
downloadandroid_bootable_recovery-7d524a440ff00f49b1d5b9f6c639f9140a362a35.tar
android_bootable_recovery-7d524a440ff00f49b1d5b9f6c639f9140a362a35.tar.gz
android_bootable_recovery-7d524a440ff00f49b1d5b9f6c639f9140a362a35.tar.bz2
android_bootable_recovery-7d524a440ff00f49b1d5b9f6c639f9140a362a35.tar.lz
android_bootable_recovery-7d524a440ff00f49b1d5b9f6c639f9140a362a35.tar.xz
android_bootable_recovery-7d524a440ff00f49b1d5b9f6c639f9140a362a35.tar.zst
android_bootable_recovery-7d524a440ff00f49b1d5b9f6c639f9140a362a35.zip
-rw-r--r--recovery.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/recovery.cpp b/recovery.cpp
index 8c214beb2..5c60ce655 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -972,8 +972,9 @@ static void choose_recovery_file(Device* device) {
const char* headers[] = { "Select file to view", nullptr };
+ int chosen_item = 0;
while (true) {
- int chosen_item = get_menu_selection(headers, entries, 1, 0, device);
+ chosen_item = get_menu_selection(headers, entries, 1, chosen_item, device);
if (strcmp(entries[chosen_item], "Back") == 0) break;
ui->ShowFile(entries[chosen_item]);