diff options
author | Tao Bao <tbao@google.com> | 2017-03-01 03:36:18 +0100 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-03-01 03:36:18 +0100 |
commit | b1ddf973d027aa8b93d57c8fe877cb7cce2d8b88 (patch) | |
tree | cb521f9f390e70b7a1a33a26fae3ae9ae8411336 | |
parent | Merge "recovery: Don't show "No /cache partition found" on screen." am: 021304503a (diff) | |
parent | Merge "recovery: Remember the last log position." (diff) | |
download | android_bootable_recovery-b1ddf973d027aa8b93d57c8fe877cb7cce2d8b88.tar android_bootable_recovery-b1ddf973d027aa8b93d57c8fe877cb7cce2d8b88.tar.gz android_bootable_recovery-b1ddf973d027aa8b93d57c8fe877cb7cce2d8b88.tar.bz2 android_bootable_recovery-b1ddf973d027aa8b93d57c8fe877cb7cce2d8b88.tar.lz android_bootable_recovery-b1ddf973d027aa8b93d57c8fe877cb7cce2d8b88.tar.xz android_bootable_recovery-b1ddf973d027aa8b93d57c8fe877cb7cce2d8b88.tar.zst android_bootable_recovery-b1ddf973d027aa8b93d57c8fe877cb7cce2d8b88.zip |
-rw-r--r-- | recovery.cpp | 3 |
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]); |