Skip to content

Commit 29d3337

Browse files
committed
DisplayApp: Go to clock on wakeup if no app loaded
When waking the screen up, 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 29d3337

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/displayapp/DisplayApp.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,9 @@ void DisplayApp::Refresh() {
252252
lv_disp_trig_activity(nullptr);
253253
ApplyBrightness();
254254
state = States::Running;
255+
if (currentApp == Apps::Launcher || currentApp == Apps::QuickSettings || currentApp == Apps::Settings) {
256+
LoadScreen(Apps::Clock, DisplayApp::FullRefreshDirections::None);
257+
}
255258
break;
256259
case Messages::UpdateBleConnection:
257260
// clockScreen.SetBleConnectionState(bleController.IsConnected() ? Screens::Clock::BleConnectionStates::Connected :

0 commit comments

Comments
 (0)