summaryrefslogtreecommitdiffstats
path: root/wear_ui.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-07-02 04:54:16 +0200
committerandroid-build-merger <android-build-merger@google.com>2017-07-02 04:54:16 +0200
commit154a6e71a68a43c4dbd715745e120f27aac10e19 (patch)
tree3b77dc4311e746e4d1c4f97aca0dc245e09f6434 /wear_ui.cpp
parentscreen_ui: Compute the top and bottom gaps. am: f95e686dd0 -s ours (diff)
parentMerge "Update ScreenRecoveryUI::Draw* function signatures." am: c8e338fa9c am: c24d97fafa (diff)
downloadandroid_bootable_recovery-154a6e71a68a43c4dbd715745e120f27aac10e19.tar
android_bootable_recovery-154a6e71a68a43c4dbd715745e120f27aac10e19.tar.gz
android_bootable_recovery-154a6e71a68a43c4dbd715745e120f27aac10e19.tar.bz2
android_bootable_recovery-154a6e71a68a43c4dbd715745e120f27aac10e19.tar.lz
android_bootable_recovery-154a6e71a68a43c4dbd715745e120f27aac10e19.tar.xz
android_bootable_recovery-154a6e71a68a43c4dbd715745e120f27aac10e19.tar.zst
android_bootable_recovery-154a6e71a68a43c4dbd715745e120f27aac10e19.zip
Diffstat (limited to 'wear_ui.cpp')
-rw-r--r--wear_ui.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/wear_ui.cpp b/wear_ui.cpp
index a29746cdc..18c30d34a 100644
--- a/wear_ui.cpp
+++ b/wear_ui.cpp
@@ -95,7 +95,7 @@ void WearRecoveryUI::draw_background_locked() {
}
}
-static const char* HEADERS[] = {
+static const char* SWIPE_HELP[] = {
"Swipe up/down to move.",
"Swipe left/right to select.",
"",
@@ -119,15 +119,15 @@ void WearRecoveryUI::draw_screen_locked() {
std::string recovery_fingerprint =
android::base::GetProperty("ro.bootimage.build.fingerprint", "");
SetColor(HEADER);
- DrawTextLine(x + 4, &y, "Android Recovery", true);
+ y += DrawTextLine(x + 4, y, "Android Recovery", true);
for (auto& chunk : android::base::Split(recovery_fingerprint, ":")) {
- DrawTextLine(x + 4, &y, chunk.c_str(), false);
+ y += DrawTextLine(x + 4, y, chunk.c_str(), false);
}
// This is actually the help strings.
- DrawTextLines(x + 4, &y, HEADERS);
+ y += DrawTextLines(x + 4, y, SWIPE_HELP);
SetColor(HEADER);
- DrawTextLines(x + 4, &y, menu_headers_);
+ y += DrawTextLines(x + 4, y, menu_headers_);
// Show the current menu item number in relation to total number if
// items don't fit on the screen.