diff options
author | JF002 <JF002@users.noreply.github.com> | 2021-09-23 20:13:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-23 20:13:42 +0200 |
commit | 8a2b86dc8376d915b664a301465f7a5ef675b66f (patch) | |
tree | e9e5efad34e3ab0ed7e3651364ab09985b5c9bcb /src/systemtask | |
parent | 1c3c3c8db919c703bbd3f1be4ce9c6833237ea6f (diff) | |
parent | 93d240a23b1071efd0ac4ecba986f98bc1dae2a4 (diff) |
Merge pull request #664 from Riksu9000/disable_notif_only
Toggle notifications only, keep vibrations.
Diffstat (limited to 'src/systemtask')
-rw-r--r-- | src/systemtask/SystemTask.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/systemtask/SystemTask.cpp b/src/systemtask/SystemTask.cpp index 529d2863..5441c162 100644 --- a/src/systemtask/SystemTask.cpp +++ b/src/systemtask/SystemTask.cpp @@ -269,10 +269,12 @@ void SystemTask::Work() { displayApp.PushMessage(Pinetime::Applications::Display::Messages::UpdateDateTime); break; case Messages::OnNewNotification: - if (isSleeping && !isWakingUp) { - GoToRunning(); + if (settingsController.GetNotificationStatus() == Pinetime::Controllers::Settings::Notification::ON) { + if (isSleeping && !isWakingUp) { + GoToRunning(); + } + displayApp.PushMessage(Pinetime::Applications::Display::Messages::NewNotification); } - displayApp.PushMessage(Pinetime::Applications::Display::Messages::NewNotification); break; case Messages::OnTimerDone: if (isSleeping && !isWakingUp) { |