From 633c01baca2c156855bdffa096899c43d484939a Mon Sep 17 00:00:00 2001 From: Karl Shaffer Date: Thu, 19 Jul 2018 11:58:54 -0700 Subject: Updates Wear UI to Display Localized Recovery Text. Updates Wear Recovery UI to fix bug. Recovery UI now will display the proper Recovery Text during progress actions above the ProgressBarBaseline as defined in device make files. Change-Id: Idef0cb046dd06979042ca877ba0c61e9faaedec1 Bug: 64330124 (cherry picked from commit 19f6cccdafe53e14b9cd083e69da5887028070a0) --- wear_ui.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wear_ui.cpp b/wear_ui.cpp index 65c4aeed6..f50823688 100644 --- a/wear_ui.cpp +++ b/wear_ui.cpp @@ -53,6 +53,13 @@ void WearRecoveryUI::draw_background_locked() { int frame_x = (gr_fb_width() - frame_width) / 2; int frame_y = (gr_fb_height() - frame_height) / 2; gr_blit(frame, 0, 0, frame_width, frame_height, frame_x, frame_y); + + // Draw recovery text on screen above progress bar. + GRSurface* text = GetCurrentText(); + int text_x = (ScreenWidth() - gr_get_width(text)) / 2; + int text_y = GetProgressBaseline() - gr_get_height(text) - 10; + gr_color(255, 255, 255, 255); + gr_texticon(text_x, text_y, text); } } -- cgit v1.2.3