From ba4c17c0d778d25f253cd05bf502fcc27e7d488a Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Fri, 28 Jan 2022 16:15:14 -0800 Subject: [PATCH] Restore full screen if that is what we used last --- iOS/Article/ArticleViewController.swift | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/iOS/Article/ArticleViewController.swift b/iOS/Article/ArticleViewController.swift index 46dd71935..6009f6ff1 100644 --- a/iOS/Article/ArticleViewController.swift +++ b/iOS/Article/ArticleViewController.swift @@ -149,9 +149,6 @@ class ArticleViewController: UIViewController, MainControllerIdentifiable { articleExtractorButton.buttonState = controller.articleExtractorButtonState self.pageViewController.setViewControllers([controller], direction: .forward, animated: false, completion: nil) - if AppDefaults.shared.articleFullscreenEnabled { - controller.hideBars() - } // Search bar searchBar.translatesAutoresizingMaskIntoConstraints = false @@ -166,6 +163,10 @@ class ArticleViewController: UIViewController, MainControllerIdentifiable { override func viewWillAppear(_ animated: Bool) { navigationController?.isToolbarHidden = false + if AppDefaults.shared.articleFullscreenEnabled { + currentWebViewController?.hideBars() + } + super.viewWillAppear(animated) }