Fix issue where full screen wouldn't come back after being engaged and moving to the timeline. (Regression)

This commit is contained in:
Maurice Parker 2020-02-26 16:02:36 -08:00
parent 9e3f061fcb
commit cd5e491f00
1 changed files with 3 additions and 7 deletions

View File

@ -114,18 +114,14 @@ class ArticleViewController: UIViewController {
DispatchQueue.main.async {
self.pageViewController.setViewControllers([controller], direction: .forward, animated: false, completion: nil)
if AppDefaults.articleFullscreenEnabled {
controller.hideBars()
}
}
updateUI()
}
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
if AppDefaults.articleFullscreenEnabled {
currentWebViewController?.hideBars()
}
}
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(true)
coordinator.isArticleViewControllerPending = false