Always update the status sync timer when returning to the foreground. Issue #2005
This commit is contained in:
parent
f7bdf9d47c
commit
2454b807bb
@ -157,13 +157,13 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
|
|||||||
|
|
||||||
func prepareAccountsForForeground() {
|
func prepareAccountsForForeground() {
|
||||||
extensionFeedAddRequestFile.resume()
|
extensionFeedAddRequestFile.resume()
|
||||||
|
syncTimer?.update()
|
||||||
|
|
||||||
if let lastRefresh = AppDefaults.lastRefresh {
|
if let lastRefresh = AppDefaults.lastRefresh {
|
||||||
if Date() > lastRefresh.addingTimeInterval(15 * 60) {
|
if Date() > lastRefresh.addingTimeInterval(15 * 60) {
|
||||||
AccountManager.shared.refreshAll(errorHandler: ErrorHandler.log)
|
AccountManager.shared.refreshAll(errorHandler: ErrorHandler.log)
|
||||||
} else {
|
} else {
|
||||||
AccountManager.shared.syncArticleStatusAll()
|
AccountManager.shared.syncArticleStatusAll()
|
||||||
syncTimer?.update()
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
AccountManager.shared.refreshAll(errorHandler: ErrorHandler.log)
|
AccountManager.shared.refreshAll(errorHandler: ErrorHandler.log)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user