Merge branch 'master' into extension-point
This commit is contained in:
commit
5d5093d26d
|
@ -163,13 +163,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)
|
||||||
|
|
|
@ -29,6 +29,8 @@ class ImageViewController: UIViewController {
|
||||||
super.viewDidLoad()
|
super.viewDidLoad()
|
||||||
|
|
||||||
closeButton.imageView?.contentMode = .scaleAspectFit
|
closeButton.imageView?.contentMode = .scaleAspectFit
|
||||||
|
closeButton.accessibilityLabel = NSLocalizedString("Close", comment: "Close")
|
||||||
|
shareButton.accessibilityLabel = NSLocalizedString("Share", comment: "Share")
|
||||||
|
|
||||||
imageScrollView.setup()
|
imageScrollView.setup()
|
||||||
imageScrollView.imageScrollViewDelegate = self
|
imageScrollView.imageScrollViewDelegate = self
|
||||||
|
|
Loading…
Reference in New Issue