aboutsummaryrefslogtreecommitdiffstats
path: root/screen_ui.cpp
diff options
context:
space:
mode:
authorTom Marshall <tdm@cyngn.com>2014-11-21 16:13:22 -0800
committerTom Marshall <tdm@cyngn.com>2015-11-25 15:35:22 -0800
commit1ac4efa02d0023b219e54af34d154122be3dbead (patch)
treeaa98aa37c7f21a55000be050b92b43e68c2aa87f /screen_ui.cpp
parent8c0781743356e84e3b3e248d99ba09c44456bd9c (diff)
downloadbootable_recovery-1ac4efa02d0023b219e54af34d154122be3dbead.tar.gz
bootable_recovery-1ac4efa02d0023b219e54af34d154122be3dbead.tar.bz2
bootable_recovery-1ac4efa02d0023b219e54af34d154122be3dbead.zip
recovery: New icon type VIEWING_LOG
* Fixes "View recovery logs" This is probably not the best solution, perhaps find a different way? Change-Id: Ibd901ce7f69ec05c4d26cdb027e51b7e5b826034
Diffstat (limited to 'screen_ui.cpp')
-rw-r--r--screen_ui.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/screen_ui.cpp b/screen_ui.cpp
index f5c4916..5ed74a6 100644
--- a/screen_ui.cpp
+++ b/screen_ui.cpp
@@ -350,7 +350,7 @@ void ScreenRecoveryUI::draw_screen_locked() {
gr_color(0, 0, 0, 255);
gr_clear();
- if (currentIcon == INSTALLING_UPDATE) {
+ if (currentIcon == INSTALLING_UPDATE || currentIcon == VIEWING_LOG) {
size_t y = header_height_ + 4;
draw_background_locked(currentIcon);
@@ -688,6 +688,8 @@ void ScreenRecoveryUI::ShowFile(FILE* fp) {
offsets.push_back(ftell(fp));
ClearText();
+ SetBackground(RecoveryUI::VIEWING_LOG);
+
struct stat sb;
fstat(fileno(fp), &sb);