Merge branch 'tgc-dk_new-notifi-msg'
This commit is contained in:
commit
945693db93
8
main.cpp
8
main.cpp
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user