diff options
author | Jean-François Milants <jf@codingfield.com> | 2021-04-18 17:44:40 +0200 |
---|---|---|
committer | Jean-François Milants <jf@codingfield.com> | 2021-04-18 17:44:40 +0200 |
commit | bbc24e88b0e2126be39b073ffd734b2ab07c225d (patch) | |
tree | 089d7cc2fa6856474c89f88e8f57fc39279eb7a9 | |
parent | e96c0422f08a1f6bb81d5e9950d52af11572aac7 (diff) |
Fix a display glitch when an OTA is initiated while an app (other than Clock) was open and while the device was in sleep mode.
-rw-r--r-- | src/displayapp/screens/FirmwareUpdate.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/displayapp/screens/FirmwareUpdate.cpp b/src/displayapp/screens/FirmwareUpdate.cpp index e894850e..26cc9a9c 100644 --- a/src/displayapp/screens/FirmwareUpdate.cpp +++ b/src/displayapp/screens/FirmwareUpdate.cpp @@ -9,6 +9,12 @@ using namespace Pinetime::Applications::Screens; FirmwareUpdate::FirmwareUpdate(Pinetime::Applications::DisplayApp *app, Pinetime::Controllers::Ble& bleController) : Screen(app), bleController{bleController} { + lv_obj_t * backgroundLabel = lv_label_create(lv_scr_act(), nullptr); + lv_label_set_long_mode(backgroundLabel, LV_LABEL_LONG_CROP); + lv_obj_set_size(backgroundLabel, 240, 240); + lv_obj_set_pos(backgroundLabel, 0, 0); + lv_label_set_text_static(backgroundLabel, ""); + titleLabel = lv_label_create(lv_scr_act(), nullptr); lv_label_set_text(titleLabel, "Firmware update"); lv_obj_set_auto_realign(titleLabel, true); |