Skip to content

Commit 8165c86

Browse files
authored
Merge pull request #652 from dyamon/wake-on-notification
Make new notifications refresh idle timer
2 parents 77e73fe + 59ce48a commit 8165c86

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

src/systemtask/SystemTask.cpp

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -250,12 +250,13 @@ void SystemTask::Work() {
250250
isDimmed = false;
251251
break;
252252
case Messages::TouchWakeUp: {
253-
if(touchHandler.GetNewTouchInfo()) {
253+
if (touchHandler.GetNewTouchInfo()) {
254254
auto gesture = touchHandler.GestureGet();
255-
if (gesture != Pinetime::Drivers::Cst816S::Gestures::None and ((gesture == Pinetime::Drivers::Cst816S::Gestures::DoubleTap and
256-
settingsController.isWakeUpModeOn(Pinetime::Controllers::Settings::WakeUpMode::DoubleTap)) or
257-
(gesture == Pinetime::Drivers::Cst816S::Gestures::SingleTap and
258-
settingsController.isWakeUpModeOn(Pinetime::Controllers::Settings::WakeUpMode::SingleTap)))) {
255+
if (gesture != Pinetime::Drivers::Cst816S::Gestures::None and
256+
((gesture == Pinetime::Drivers::Cst816S::Gestures::DoubleTap and
257+
settingsController.isWakeUpModeOn(Pinetime::Controllers::Settings::WakeUpMode::DoubleTap)) or
258+
(gesture == Pinetime::Drivers::Cst816S::Gestures::SingleTap and
259+
settingsController.isWakeUpModeOn(Pinetime::Controllers::Settings::WakeUpMode::SingleTap)))) {
259260
GoToRunning();
260261
}
261262
}
@@ -276,6 +277,8 @@ void SystemTask::Work() {
276277
if (settingsController.GetNotificationStatus() == Pinetime::Controllers::Settings::Notification::ON) {
277278
if (isSleeping && !isWakingUp) {
278279
GoToRunning();
280+
} else {
281+
ReloadIdleTimer();
279282
}
280283
displayApp.PushMessage(Pinetime::Applications::Display::Messages::NewNotification);
281284
}

0 commit comments

Comments
 (0)