Merge branch 'tgc-dk_new-notifi-msg'

main
Reinhold Gschweicher 2022-09-27 23:39:44 +07:00
commit 945693db93
1 changed files with 8 additions and 0 deletions

@ -589,6 +589,14 @@ public:
if (notification_idx >= notification_messages.size()/2) {
notification_idx = 0;
}
if (settingsController.GetNotificationStatus() == Pinetime::Controllers::Settings::Notification::On)
{
if (screen_off_created) {
// wake up! (deletes screen_off label)
systemTask.PushMessage(Pinetime::System::Messages::GoToRunning);
}
displayApp.PushMessage(Pinetime::Applications::Display::Messages::NewNotification);
}
}
// can't use SDL_PollEvent, as those are fed to lvgl