aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp/screens/Notifications.h
diff options
context:
space:
mode:
authormark9064 <30447455+mark9064@users.noreply.github.com>2024-08-23 00:15:24 +0100
committerNeroBurner <pyro4hell@gmail.com>2024-09-21 22:45:57 +0200
commit7ca0418c82173fa1cff9537eaf1f030b5a712e9a (patch)
tree6d62fcabb5c764dff72943a08a8c7e554fcd5043 /src/displayapp/screens/Notifications.h
parentc3d05901a05a274f30c15b8c0640b6ecdd973ac3 (diff)
Refactor doNotGoToSleep to a wakelock counter
Diffstat (limited to 'src/displayapp/screens/Notifications.h')
-rw-r--r--src/displayapp/screens/Notifications.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/displayapp/screens/Notifications.h b/src/displayapp/screens/Notifications.h
index 114316b3..8488dc5b 100644
--- a/src/displayapp/screens/Notifications.h
+++ b/src/displayapp/screens/Notifications.h
@@ -8,6 +8,7 @@
#include "components/ble/NotificationManager.h"
#include "components/motor/MotorController.h"
#include "systemtask/SystemTask.h"
+#include "systemtask/WakeLock.h"
namespace Pinetime {
namespace Controllers {
@@ -73,7 +74,7 @@ namespace Pinetime {
Pinetime::Controllers::NotificationManager& notificationManager;
Pinetime::Controllers::AlertNotificationService& alertNotificationService;
Pinetime::Controllers::MotorController& motorController;
- System::SystemTask& systemTask;
+ System::WakeLock wakeLock;
Modes mode = Modes::Normal;
std::unique_ptr<NotificationItem> currentItem;
Pinetime::Controllers::NotificationManager::Notification::Id currentId;