Move from using views for the queue to using an array and remove unneeded flush of queue

This commit is contained in:
Maurice Parker
2020-07-16 13:56:07 -05:00
parent cdf8ad1277
commit 84389e2cf4
3 changed files with 12 additions and 48 deletions

View File

@@ -225,7 +225,7 @@ class ArticleViewController: UIViewController {
}
@objc func contentSizeCategoryDidChange(_ note: Notification) {
resetWebViewController()
currentWebViewController?.fullReload()
}
@objc func willEnterForeground(_ note: Notification) {
@@ -470,13 +470,4 @@ private extension ArticleViewController {
return controller
}
func resetWebViewController() {
coordinator.webViewProvider.flushQueue()
coordinator.webViewProvider.replenishQueueIfNeeded()
if let controller = currentWebViewController {
controller.fullReload()
self.pageViewController.setViewControllers([controller], direction: .forward, animated: false, completion: nil)
}
}
}