From f4d6905dcb8f7a6fb2c702b85f1e998abc5af126 Mon Sep 17 00:00:00 2001 From: Vyacheslav Chigrin Date: Sun, 8 Dec 2024 02:44:34 +0300 Subject: [PATCH] Avoid blinking during FindMyPhone app start. --- src/displayapp/screens/FindMyPhone.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/displayapp/screens/FindMyPhone.cpp b/src/displayapp/screens/FindMyPhone.cpp index dca3bff9a0..45dc9570f3 100644 --- a/src/displayapp/screens/FindMyPhone.cpp +++ b/src/displayapp/screens/FindMyPhone.cpp @@ -72,6 +72,8 @@ FindMyPhone::FindMyPhone(Pinetime::Controllers::ImmediateAlertClient& immediateA lv_label_set_text_static(lblRing, ringLabelText); lv_obj_set_style_local_bg_color(btnRing, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, LV_COLOR_RED); refreshTask = lv_task_create(RefreshTaskCallback, LV_DISP_DEF_REFR_PERIOD, LV_TASK_PRIO_MID, this); + // Refresh ASAP to properly set buttons state. + Refresh(); } FindMyPhone::~FindMyPhone() {