From 8ce2cbaf3bced2f8e04e58f474ed8f0c870e2843 Mon Sep 17 00:00:00 2001 From: JoeStrout Date: Fri, 14 Aug 2026 10:47:50 -0700 Subject: [PATCH] DisplayApp: Return to the clock when sleeping from a notification preview When the display goes to sleep, DisplayApp returns to the clock face from every transient screen except the notification preview. A preview that has been tapped once has already cancelled its auto-close timer and released its wake lock, so it stays loaded across sleep and reappears on every wake until you navigate away from it manually. Add Apps::NotificationsPreview to the list of screens that are left behind on sleep, so a tapped preview is dismissed like every other transient screen. --- src/displayapp/DisplayApp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/displayapp/DisplayApp.cpp b/src/displayapp/DisplayApp.cpp index 84fa603622..11ed9a263b 100644 --- a/src/displayapp/DisplayApp.cpp +++ b/src/displayapp/DisplayApp.cpp @@ -320,8 +320,8 @@ void DisplayApp::Refresh() { brightnessController.Set(Controllers::BrightnessController::Levels::Off); } // 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) { + if (currentApp == Apps::Launcher || currentApp == Apps::Notifications || currentApp == Apps::NotificationsPreview || + currentApp == Apps::QuickSettings || currentApp == Apps::Settings) { LoadScreen(Apps::Clock, DisplayApp::FullRefreshDirections::None); // Wait for the clock app to load before moving on. while (!lv_task_handler()) {