mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-02 10:22:35 +00:00
Post app did go to background notification instead of .lowMemory when app goes to background.
This commit is contained in:
1 parent
16ac60ba41
commit
a18980f65a
2 files changed
+6
-4
No files matched your search
@@ -302,7 +302,7 @@ let appName = "NetNewsWire"
|
||||
}
|
||||
|
||||
func applicationDidResignActive(_ notification: Notification) {
|
||||
postLowMemoryNotification()
|
||||
AppNotification.postAppDidGoToBackground()
|
||||
saveState()
|
||||
}
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user