diff --git a/Kiwix-iOS/AppDelegate.swift b/Kiwix-iOS/AppDelegate.swift index 73e556c3..ff43b237 100644 --- a/Kiwix-iOS/AppDelegate.swift +++ b/Kiwix-iOS/AppDelegate.swift @@ -71,6 +71,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { func applicationDidBecomeActive(application: UIApplication) { // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. NSTimer.scheduledTimerWithTimeInterval(60.0, target: self, selector: #selector(AppDelegate.recordActiveSession), userInfo: nil, repeats: false) + ZimMultiReader.shared.startScan() removeAllDynamicShortcutItems() } diff --git a/Kiwix-iOS/Controller/Main/MainControllerDelegates.swift b/Kiwix-iOS/Controller/Main/MainControllerDelegates.swift index ffe50ee9..0709b505 100644 --- a/Kiwix-iOS/Controller/Main/MainControllerDelegates.swift +++ b/Kiwix-iOS/Controller/Main/MainControllerDelegates.swift @@ -24,11 +24,11 @@ extension MainController: UIWebViewDelegate, SFSafariViewControllerDelegate, } func webViewDidStartLoad(webView: UIWebView) { -// URLResponseCache.shared.start() + URLResponseCache.shared.start() } func webViewDidFinishLoad(webView: UIWebView) { -// URLResponseCache.shared.stop() + URLResponseCache.shared.stop() // Create article object guard let url = webView.request?.URL, @@ -36,6 +36,9 @@ extension MainController: UIWebViewDelegate, SFSafariViewControllerDelegate, article.title = JSInjection.getTitle(from: webView) article.thumbImageURL = URLResponseCache.shared.firstImage()?.absoluteString self.article = article + + // UI Updates + configureNavigationButtonTint() } func webView(webView: UIWebView, didFailLoadWithError error: NSError) { diff --git a/Kiwix-iOS/Info.plist b/Kiwix-iOS/Info.plist index 3ad91b8c..307fc911 100644 --- a/Kiwix-iOS/Info.plist +++ b/Kiwix-iOS/Info.plist @@ -49,7 +49,7 @@ CFBundleVersion - 1.8.338 + 1.8.341 ITSAppUsesNonExemptEncryption LSRequiresIPhoneOS diff --git a/Kiwix-iOSWidgets/Bookmarks/Info.plist b/Kiwix-iOSWidgets/Bookmarks/Info.plist index d806f87c..1b9a9081 100644 --- a/Kiwix-iOSWidgets/Bookmarks/Info.plist +++ b/Kiwix-iOSWidgets/Bookmarks/Info.plist @@ -21,7 +21,7 @@ CFBundleSignature ???? CFBundleVersion - 1.8.341 + 1.8.344 NSExtension NSExtensionMainStoryboard diff --git a/Kiwix/Operations/ScanLocalBookOperation.swift b/Kiwix/Operations/ScanLocalBookOperation.swift index b96ab100..18e3c4e1 100644 --- a/Kiwix/Operations/ScanLocalBookOperation.swift +++ b/Kiwix/Operations/ScanLocalBookOperation.swift @@ -50,7 +50,7 @@ class ScanLocalBookOperation: Operation { } override func operationDidFinish(errors: [ErrorType]) { - print("Scan finshed, lasted for \(-time.timeIntervalSinceNow)") + print("Scan finshed, lasted for \(-time.timeIntervalSinceNow) seconds.") } private func updateReaders() { diff --git a/Kiwix/ZimMultiReader/ZimMultiReader.swift b/Kiwix/ZimMultiReader/ZimMultiReader.swift index 0429318e..3d71ecdd 100644 --- a/Kiwix/ZimMultiReader/ZimMultiReader.swift +++ b/Kiwix/ZimMultiReader/ZimMultiReader.swift @@ -21,8 +21,6 @@ class ZimMultiReader: NSObject, DirectoryMonitorDelegate { override init() { super.init() - - startScan() monitor.delegate = self monitor.startMonitoring() } @@ -44,7 +42,7 @@ class ZimMultiReader: NSObject, DirectoryMonitorDelegate { }) }) operation.queuePriority = .VeryHigh - if readers.count == 0 { operation.qualityOfService = .UserInitiated } + if readers.count == 0 { operation.qualityOfService = .UserInteractive } GlobalQueue.shared.add(scan: operation) }