summaryrefslogtreecommitdiffstats
path: root/recovery.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2015-09-12 03:15:45 +0200
committerAndroid Git Automerger <android-git-automerger@android.com>2015-09-12 03:15:45 +0200
commit605241984cc41f62e2f2e005865d7afed504a972 (patch)
treee1fc8d5073c8b3b432104aa6d9b91f836c622e2a /recovery.cpp
parentam 7a677807: Merge "updater: Fix the line breaks in ui_print commands." (diff)
parentMerge "recovery: Remove redirect_stdio() when calling ShowFile()." (diff)
downloadandroid_bootable_recovery-605241984cc41f62e2f2e005865d7afed504a972.tar
android_bootable_recovery-605241984cc41f62e2f2e005865d7afed504a972.tar.gz
android_bootable_recovery-605241984cc41f62e2f2e005865d7afed504a972.tar.bz2
android_bootable_recovery-605241984cc41f62e2f2e005865d7afed504a972.tar.lz
android_bootable_recovery-605241984cc41f62e2f2e005865d7afed504a972.tar.xz
android_bootable_recovery-605241984cc41f62e2f2e005865d7afed504a972.tar.zst
android_bootable_recovery-605241984cc41f62e2f2e005865d7afed504a972.zip
Diffstat (limited to 'recovery.cpp')
-rw-r--r--recovery.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/recovery.cpp b/recovery.cpp
index c683bae1d..379137a64 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -745,10 +745,7 @@ static void choose_recovery_file(Device* device) {
int chosen_item = get_menu_selection(headers, entries, 1, 0, device);
if (strcmp(entries[chosen_item], "Back") == 0) break;
- // TODO: do we need to redirect? ShowFile could just avoid writing to stdio.
- redirect_stdio("/dev/null");
ui->ShowFile(entries[chosen_item]);
- redirect_stdio(TEMPORARY_LOG_FILE);
}
for (size_t i = 0; i < (sizeof(entries) / sizeof(*entries)); i++) {