summaryrefslogtreecommitdiffstats
path: root/wear_ui.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-05-02 23:57:21 +0200
committerTao Bao <tbao@google.com>2018-05-03 00:32:48 +0200
commit93e46ad42658fd61104d0c3998ec5c7da2042179 (patch)
tree71f8596358d2b86e4406f21c8dbe58b90cad96fb /wear_ui.cpp
parentMerge "screen_ui: Drop the dependency on common.h." (diff)
downloadandroid_bootable_recovery-93e46ad42658fd61104d0c3998ec5c7da2042179.tar
android_bootable_recovery-93e46ad42658fd61104d0c3998ec5c7da2042179.tar.gz
android_bootable_recovery-93e46ad42658fd61104d0c3998ec5c7da2042179.tar.bz2
android_bootable_recovery-93e46ad42658fd61104d0c3998ec5c7da2042179.tar.lz
android_bootable_recovery-93e46ad42658fd61104d0c3998ec5c7da2042179.tar.xz
android_bootable_recovery-93e46ad42658fd61104d0c3998ec5c7da2042179.tar.zst
android_bootable_recovery-93e46ad42658fd61104d0c3998ec5c7da2042179.zip
Diffstat (limited to 'wear_ui.cpp')
-rw-r--r--wear_ui.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/wear_ui.cpp b/wear_ui.cpp
index 118e43508..e4473ba5c 100644
--- a/wear_ui.cpp
+++ b/wear_ui.cpp
@@ -61,13 +61,6 @@ void WearRecoveryUI::draw_background_locked() {
}
}
-static const char* SWIPE_HELP[] = {
- "Swipe up/down to move.",
- "Swipe left/right to select.",
- "",
- nullptr,
-};
-
void WearRecoveryUI::draw_screen_locked() {
draw_background_locked();
if (!show_text) {
@@ -76,6 +69,13 @@ void WearRecoveryUI::draw_screen_locked() {
SetColor(TEXT_FILL);
gr_fill(0, 0, gr_fb_width(), gr_fb_height());
+ // clang-format off
+ static std::vector<std::string> SWIPE_HELP = {
+ "Swipe up/down to move.",
+ "Swipe left/right to select.",
+ "",
+ };
+ // clang-format on
draw_menu_and_text_buffer_locked(SWIPE_HELP);
}
}
@@ -99,4 +99,4 @@ void WearRecoveryUI::StartMenu(const char* const* headers, const char* const* it
update_screen_locked();
}
pthread_mutex_unlock(&updateMutex);
-} \ No newline at end of file
+}