summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/Notifications.h
diff options
context:
space:
mode:
authorFlorian Kraupa <fgrauper@gmail.com>2021-05-13 00:08:40 +0200
committerFlorian Kraupa <fgrauper@gmail.com>2021-05-16 00:42:31 +0200
commit5da65494b3da1a69d08f7b7e6c5242f6ce666e32 (patch)
tree29825e69ab6804fe93d5d1cc3233ed3a0d2732b5 /src/displayapp/screens/Notifications.h
parentd13dd6dee3e6194a2f3ed2a1adfbbd32ced525a3 (diff)
only activate the timeout on call notification previews after they have been interacted with
Diffstat (limited to 'src/displayapp/screens/Notifications.h')
-rw-r--r--src/displayapp/screens/Notifications.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/displayapp/screens/Notifications.h b/src/displayapp/screens/Notifications.h
index ae83e8ee..89b676ec 100644
--- a/src/displayapp/screens/Notifications.h
+++ b/src/displayapp/screens/Notifications.h
@@ -36,7 +36,8 @@ namespace Pinetime {
uint8_t notifNb,
Modes mode,
Pinetime::Controllers::AlertNotificationService& alertNotificationService,
- Controllers::MotorController& motorController);
+ Controllers::MotorController& motorController,
+ uint32_t* timeoutEnd);
~NotificationItem();
bool Refresh() {
return false;
@@ -44,8 +45,10 @@ namespace Pinetime {
void OnAcceptIncomingCall(lv_event_t event);
void OnMuteIncomingCall(lv_event_t event);
void OnRejectIncomingCall(lv_event_t event);
-
+ bool timeoutOnHold = false;
private:
+ void callPreviewInteraction();
+
uint8_t notifNr = 0;
uint8_t notifNb = 0;
char pageText[4];
@@ -61,6 +64,7 @@ namespace Pinetime {
lv_obj_t* label_mute;
lv_obj_t* label_reject;
lv_obj_t* bottomPlaceholder;
+ uint32_t* timeoutEnd;
Modes mode;
Pinetime::Controllers::AlertNotificationService& alertNotificationService;
Controllers::MotorController& motorController;