@@ -13,11 +13,11 @@ Notifications::Notifications(DisplayApp* app,
1313 Pinetime::Controllers::AlertNotificationService& alertNotificationService,
1414 Controllers::MotorController& motorController,
1515 Modes mode)
16- : Screen(app),
17- notificationManager {notificationManager},
18- alertNotificationService {alertNotificationService},
19- motorController{motorController},
20- mode {mode} {
16+ : Screen(app),
17+ notificationManager {notificationManager},
18+ alertNotificationService {alertNotificationService},
19+ motorController{motorController},
20+ mode {mode} {
2121 notificationManager.ClearNewNotificationFlag ();
2222 auto notification = notificationManager.GetLastNotification ();
2323 if (notification.valid ) {
@@ -45,8 +45,6 @@ Notifications::Notifications(DisplayApp* app,
4545 }
4646
4747 if (mode == Modes::Preview) {
48-
49-
5048
5149 timeoutLine = lv_line_create (lv_scr_act (), nullptr );
5250
@@ -75,9 +73,8 @@ bool Notifications::Refresh() {
7573 lv_line_set_points (timeoutLine, timeoutLinePoints, 2 );
7674 }
7775 // make sure we stop any vibrations before exiting
78- if (!running) {
76+ if (!running)
7977 motorController.stopRunning ();
80- }
8178 return running;
8279}
8380
@@ -173,9 +170,8 @@ Notifications::NotificationItem::NotificationItem(const char* title,
173170 Pinetime::Controllers::AlertNotificationService& alertNotificationService,
174171 Controllers::MotorController& motorController,
175172 uint32_t * timeoutEnd)
176- : notifNr {notifNr}, notifNb {notifNb}, mode {mode}, alertNotificationService {alertNotificationService},
177- motorController{motorController}, timeoutEnd{timeoutEnd} {
178-
173+ : notifNr{notifNr}, notifNb{notifNb}, mode{mode}, alertNotificationService{alertNotificationService},
174+ motorController{motorController}, timeoutEnd{timeoutEnd} {
179175 lv_obj_t * container1 = lv_cont_create (lv_scr_act (), NULL );
180176
181177 lv_obj_set_style_local_bg_color (container1, LV_CONT_PART_MAIN, LV_STATE_DEFAULT, lv_color_hex (0x222222 ));
@@ -260,7 +256,6 @@ Notifications::NotificationItem::NotificationItem(const char* title,
260256 timeoutOnHold = true ;
261257 } break ;
262258 }
263-
264259
265260 lv_obj_t * backgroundLabel = lv_label_create (lv_scr_act (), nullptr );
266261 lv_label_set_long_mode (backgroundLabel, LV_LABEL_LONG_CROP);
@@ -291,7 +286,7 @@ void Notifications::NotificationItem::OnRejectIncomingCall(lv_event_t event) {
291286}
292287
293288inline void Notifications::NotificationItem::callPreviewInteraction () {
294- *timeoutEnd = xTaskGetTickCount () + (5 * 1024 );
289+ *timeoutEnd = xTaskGetTickCount () + (5 * 1024 );
295290 timeoutOnHold = false ;
296291 motorController.stopRunning ();
297292}
0 commit comments