From cd5e491f00a7c8ed7aa05c99c4b2f0d93f4e5a54 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Wed, 26 Feb 2020 16:02:36 -0800 Subject: [PATCH] Fix issue where full screen wouldn't come back after being engaged and moving to the timeline. (Regression) --- iOS/Article/ArticleViewController.swift | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/iOS/Article/ArticleViewController.swift b/iOS/Article/ArticleViewController.swift index eeac8f4cd..ff5328dd3 100644 --- a/iOS/Article/ArticleViewController.swift +++ b/iOS/Article/ArticleViewController.swift @@ -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