recovery: Remember the last log position.

After reading one log entry, it should stay at the same menu position.

Test: 'View recovery logs' -> Read -> Exit
Change-Id: I4b579be4c2fe1e3a1dcc4873e128fd0b2d619ba3
This commit is contained in:
Tao Bao
2017-02-14 10:37:41 -08:00
parent 021304503a
commit c9447cc505
+2 -1
View File
@@ -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]);