From a18980f65a5f294f7ff40ed9daed2760b62e358f Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sat, 14 Mar 2026 21:50:55 -0700 Subject: [PATCH] Post app did go to background notification instead of .lowMemory when app goes to background. --- Mac/AppDelegate.swift | 2 +- iOS/AppDelegate.swift | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Mac/AppDelegate.swift b/Mac/AppDelegate.swift index c209e6479..203b7d9f1 100644 --- a/Mac/AppDelegate.swift +++ b/Mac/AppDelegate.swift @@ -302,7 +302,7 @@ let appName = "NetNewsWire" } func applicationDidResignActive(_ notification: Notification) { - postLowMemoryNotification() + AppNotification.postAppDidGoToBackground() saveState() } diff --git a/iOS/AppDelegate.swift b/iOS/AppDelegate.swift index 069bbbcbb..9481b2c1e 100644 --- a/iOS/AppDelegate.swift +++ b/iOS/AppDelegate.swift @@ -129,7 +129,7 @@ import ErrorLog } func applicationDidReceiveMemoryWarning(_ application: UIApplication) { - postLowMemoryNotification() + AppNotification.postLowMemory() } private func updateBadge() { @@ -341,13 +341,15 @@ private extension AppDelegate { } func suspendApplication() { - guard UIApplication.shared.applicationState == .background else { return } + guard UIApplication.shared.applicationState == .background else { + return + } AccountManager.shared.suspendNetworkAll() AccountManager.shared.suspendDatabaseAll() ArticleThemeDownloader.shared.cleanUp() - postLowMemoryNotification() + AppNotification.postAppDidGoToBackground() CoalescingQueue.standard.performCallsImmediately() for scene in UIApplication.shared.connectedScenes {