Skip to content

Commit

Permalink
Fix a display glitch when an OTA is initiated while an app (other tha…
Browse files Browse the repository at this point in the history
…n Clock) was open and while the device was in sleep mode.
  • Loading branch information
JF002 committed Apr 18, 2021
1 parent e96c042 commit bbc24e8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/displayapp/screens/FirmwareUpdate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bbc24e8

Please sign in to comment.