From 65df9c000cabc790e2fd13cf46293daf7d7a5418 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Mon, 30 Dec 2024 16:09:10 -0800 Subject: [PATCH] Fix bug where full-screen-ness was getting forgotten and top and bottom toolbars were showing. --- iOS/Article/ArticleViewController.swift | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/iOS/Article/ArticleViewController.swift b/iOS/Article/ArticleViewController.swift index 586b17d87..e84167bb4 100644 --- a/iOS/Article/ArticleViewController.swift +++ b/iOS/Article/ArticleViewController.swift @@ -163,8 +163,12 @@ class ArticleViewController: UIViewController { } override func viewWillAppear(_ animated: Bool) { - let hideToolbar = AppDefaults.shared.articleFullscreenEnabled - navigationController?.isToolbarHidden = hideToolbar + let hideToolbars = AppDefaults.shared.articleFullscreenEnabled + if hideToolbars { + currentWebViewController?.hideBars() + } else { + currentWebViewController?.showBars() + } super.viewWillAppear(animated) } @@ -225,7 +229,6 @@ class ArticleViewController: UIViewController { starBarButtonItem.image = AppAssets.starOpenImage starBarButtonItem.accLabelText = NSLocalizedString("Star Article", comment: "Star Article") } - } // MARK: Notifications