Create and use logicalArticleFullscreenEnabled — so it can’t think it’s in fullscreen mode without fullscreen mode being allowed.

This commit is contained in:
Brent Simmons
2025-01-11 22:01:27 -08:00
parent 5c60e75435
commit dd8fb412ba
3 changed files with 10 additions and 6 deletions

View File

@@ -147,7 +147,7 @@ class ArticleViewController: UIViewController {
articleExtractorButton.buttonState = controller.articleExtractorButtonState
self.pageViewController.setViewControllers([controller], direction: .forward, animated: false, completion: nil)
if AppDefaults.shared.articleFullscreenEnabled {
if AppDefaults.shared.logicalArticleFullscreenEnabled {
controller.hideBars()
}
@@ -163,7 +163,7 @@ class ArticleViewController: UIViewController {
}
override func viewWillAppear(_ animated: Bool) {
let hideToolbars = AppDefaults.shared.articleFullscreenEnabled
let hideToolbars = AppDefaults.shared.logicalArticleFullscreenEnabled
if hideToolbars {
currentWebViewController?.hideBars()
} else {
@@ -255,7 +255,7 @@ class ArticleViewController: UIViewController {
@objc func willEnterForeground(_ note: Notification) {
// The toolbar will come back on you if you don't hide it again
if AppDefaults.shared.articleFullscreenEnabled {
if AppDefaults.shared.logicalArticleFullscreenEnabled {
currentWebViewController?.hideBars()
}
}