Skip to content

Commit 5de54ac

Browse files
committed
DisplayApp: Go to clock on sleep if no app loaded
When turning off the screen, if there is no actual app loaded (i.e. we are still in the QuickSettings, Settings, or Launcher screens) we should just reload the Clock app directly.
1 parent 034d83f commit 5de54ac

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/displayapp/DisplayApp.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,10 @@ void DisplayApp::Refresh() {
244244
vTaskDelay(100);
245245
}
246246
lcd.Sleep();
247+
// Since the active screen is not really an app, go back to Clock.
248+
if (currentApp == Apps::Launcher || currentApp == Apps::QuickSettings || currentApp == Apps::Settings) {
249+
LoadScreen(Apps::Clock, DisplayApp::FullRefreshDirections::None);
250+
}
247251
PushMessageToSystemTask(Pinetime::System::Messages::OnDisplayTaskSleeping);
248252
state = States::Idle;
249253
break;

0 commit comments

Comments
 (0)