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 {