|
|
@ -7,6 +7,9 @@ Notifications::Notifications(DisplayApp *app, Pinetime::Controllers::Notificatio
|
|
|
|
Screen(app), notificationManager{notificationManager}, mode{mode} {
|
|
|
|
Screen(app), notificationManager{notificationManager}, mode{mode} {
|
|
|
|
notificationManager.ClearNewNotificationFlag();
|
|
|
|
notificationManager.ClearNewNotificationFlag();
|
|
|
|
auto notification = notificationManager.GetLastNotification();
|
|
|
|
auto notification = notificationManager.GetLastNotification();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
motorController.Init(); //start the vibration timer setups
|
|
|
|
|
|
|
|
|
|
|
|
if(notification.valid) {
|
|
|
|
if(notification.valid) {
|
|
|
|
currentId = notification.id;
|
|
|
|
currentId = notification.id;
|
|
|
|
currentItem.reset(new NotificationItem("\nNotification", notification.message.data(), notification.index, notificationManager.NbNotifications(), mode));
|
|
|
|
currentItem.reset(new NotificationItem("\nNotification", notification.message.data(), notification.index, notificationManager.NbNotifications(), mode));
|
|
|
@ -22,6 +25,7 @@ Notifications::Notifications(DisplayApp *app, Pinetime::Controllers::Notificatio
|
|
|
|
style_line.line.width = 3;
|
|
|
|
style_line.line.width = 3;
|
|
|
|
style_line.line.rounded = 0;
|
|
|
|
style_line.line.rounded = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
motorController.SetDuration(35);
|
|
|
|
|
|
|
|
|
|
|
|
timeoutLine = lv_line_create(lv_scr_act(), nullptr);
|
|
|
|
timeoutLine = lv_line_create(lv_scr_act(), nullptr);
|
|
|
|
lv_line_set_style(timeoutLine, LV_LINE_STYLE_MAIN, &style_line);
|
|
|
|
lv_line_set_style(timeoutLine, LV_LINE_STYLE_MAIN, &style_line);
|
|
|
|