Skip to content

Commit bbc24e8

Browse files
committed
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.
1 parent e96c042 commit bbc24e8

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/displayapp/screens/FirmwareUpdate.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ using namespace Pinetime::Applications::Screens;
99
FirmwareUpdate::FirmwareUpdate(Pinetime::Applications::DisplayApp *app, Pinetime::Controllers::Ble& bleController) :
1010
Screen(app), bleController{bleController} {
1111

12+
lv_obj_t * backgroundLabel = lv_label_create(lv_scr_act(), nullptr);
13+
lv_label_set_long_mode(backgroundLabel, LV_LABEL_LONG_CROP);
14+
lv_obj_set_size(backgroundLabel, 240, 240);
15+
lv_obj_set_pos(backgroundLabel, 0, 0);
16+
lv_label_set_text_static(backgroundLabel, "");
17+
1218
titleLabel = lv_label_create(lv_scr_act(), nullptr);
1319
lv_label_set_text(titleLabel, "Firmware update");
1420
lv_obj_set_auto_realign(titleLabel, true);

0 commit comments

Comments
 (0)