This commit is contained in:
Victor Kareh 2024-08-13 15:15:25 +00:00 committed by GitHub
commit 335c7d91b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -303,6 +303,11 @@ void DisplayApp::Refresh() {
} else {
brightnessController.Set(Controllers::BrightnessController::Levels::Off);
lcd.Sleep();
// Since the active screen is not really an app, go back to Clock.
if (currentApp == Apps::Launcher || currentApp == Apps::Notifications || currentApp == Apps::QuickSettings ||
currentApp == Apps::Settings) {
LoadScreen(Apps::Clock, DisplayApp::FullRefreshDirections::None);
}
}
PushMessageToSystemTask(Pinetime::System::Messages::OnDisplayTaskSleeping);
state = States::Idle;