summaryrefslogtreecommitdiffstats
path: root/screen_ui.cpp
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2017-07-16 09:28:18 +0200
committerandroid-build-team Robot <android-build-team-robot@google.com>2017-07-16 09:28:18 +0200
commit3925d88c7916772d9124a4384286a17b5aedbbb6 (patch)
tree5cc47f00741220c606da8de89971a2f4533ecf8f /screen_ui.cpp
parentrelease-request-5ee66a34-3e58-4de0-ba73-1f49074ee497-for-git_oc-mr1-release-4169335 snap-temp-L20600000081126177 (diff)
parentMerge "Remove the obsolete reference to /file_contexts." (diff)
downloadandroid_bootable_recovery-3925d88c7916772d9124a4384286a17b5aedbbb6.tar
android_bootable_recovery-3925d88c7916772d9124a4384286a17b5aedbbb6.tar.gz
android_bootable_recovery-3925d88c7916772d9124a4384286a17b5aedbbb6.tar.bz2
android_bootable_recovery-3925d88c7916772d9124a4384286a17b5aedbbb6.tar.lz
android_bootable_recovery-3925d88c7916772d9124a4384286a17b5aedbbb6.tar.xz
android_bootable_recovery-3925d88c7916772d9124a4384286a17b5aedbbb6.tar.zst
android_bootable_recovery-3925d88c7916772d9124a4384286a17b5aedbbb6.zip
Diffstat (limited to 'screen_ui.cpp')
-rw-r--r--screen_ui.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/screen_ui.cpp b/screen_ui.cpp
index d9574d869..8f792f162 100644
--- a/screen_ui.cpp
+++ b/screen_ui.cpp
@@ -301,15 +301,15 @@ void ScreenRecoveryUI::draw_screen_locked() {
gr_color(0, 0, 0, 255);
gr_clear();
- static constexpr int TEXT_INDENT = 4;
- int x = TEXT_INDENT + kMarginWidth;
int y = kMarginHeight;
if (show_menu) {
- std::string recovery_fingerprint =
- android::base::GetProperty("ro.bootimage.build.fingerprint", "");
+ static constexpr int kMenuIndent = 4;
+ int x = kMarginWidth + kMenuIndent;
SetColor(INFO);
y += DrawTextLine(x, y, "Android Recovery", true);
+ std::string recovery_fingerprint =
+ android::base::GetProperty("ro.bootimage.build.fingerprint", "");
for (const auto& chunk : android::base::Split(recovery_fingerprint, ":")) {
y += DrawTextLine(x, y, chunk.c_str(), false);
}
@@ -343,7 +343,7 @@ void ScreenRecoveryUI::draw_screen_locked() {
size_t count = 0;
for (int ty = gr_fb_height() - kMarginHeight - char_height_; ty >= y && count < text_rows_;
ty -= char_height_, ++count) {
- DrawTextLine(x, ty, text_[row], false);
+ DrawTextLine(kMarginWidth, ty, text_[row], false);
--row;
if (row < 0) row = text_rows_ - 1;
}