Skip to content

Commit

Permalink
DisplayApp: Go to clock on wakeup if no app loaded
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
vkareh committed Jan 18, 2024
1 parent 034d83f commit 29d3337
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/displayapp/DisplayApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,9 @@ void DisplayApp::Refresh() {
lv_disp_trig_activity(nullptr);
ApplyBrightness();
state = States::Running;
if (currentApp == Apps::Launcher || currentApp == Apps::QuickSettings || currentApp == Apps::Settings) {
LoadScreen(Apps::Clock, DisplayApp::FullRefreshDirections::None);
}
break;
case Messages::UpdateBleConnection:
// clockScreen.SetBleConnectionState(bleController.IsConnected() ? Screens::Clock::BleConnectionStates::Connected :
Expand Down

0 comments on commit 29d3337

Please sign in to comment.