summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/Notifications.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/displayapp/screens/Notifications.cpp')
-rw-r--r--src/displayapp/screens/Notifications.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/displayapp/screens/Notifications.cpp b/src/displayapp/screens/Notifications.cpp
index cfcecec2..b777aca8 100644
--- a/src/displayapp/screens/Notifications.cpp
+++ b/src/displayapp/screens/Notifications.cpp
@@ -3,12 +3,16 @@
using namespace Pinetime::Applications::Screens;
-Notifications::Notifications(DisplayApp *app, Pinetime::Controllers::NotificationManager &notificationManager, Modes mode) :
- Screen(app), notificationManager{notificationManager}, mode{mode} {
+Notifications::Notifications(DisplayApp *app,
+ Pinetime::Controllers::NotificationManager &notificationManager,
+ Pinetime::Controllers::MotorController& motorController,
+ Modes mode) :
+ Screen(app), notificationManager{notificationManager},
+ motorController{motorController}, mode{mode} {
+
notificationManager.ClearNewNotificationFlag();
auto notification = notificationManager.GetLastNotification();
- motorController.Init(); //start the vibration timer setups
if(notification.valid) {
currentId = notification.id;