Restore full screen if that is what we used last

This commit is contained in:
Maurice Parker
2022-01-28 16:15:14 -08:00
parent 2a3bccd7d4
commit ba4c17c0d7

View File

@@ -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)
}