mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-01 01:40:22 +00:00
Fixed bug with fullscreen articles on iOS where going back to timeline would make the app would forget that you were in fullscreen mode.
This commit is contained in:
1 parent
cac2f97227
commit
e85d49b352
2 files changed
+6
-1
No files matched your search
@@ -274,7 +274,7 @@ final class ArticleViewController: UIViewController {
|
||||
}
|
||||
// Pass animated: false — animating the nav bar / toolbar visibility change during the
|
||||
// disappear transition triggers an Auto Layout assertion (NSISEngine) and crashes.
|
||||
currentWebViewController?.showBars(animated: false)
|
||||
currentWebViewController?.restoreBars(animated: false)
|
||||
}
|
||||
|
||||
override func viewDidDisappear(_ animated: Bool) {
|
||||
|
||||
@@ -291,6 +291,11 @@ final class WebViewController: UIViewController {
|
||||
|
||||
func showBars(animated: Bool = true) {
|
||||
AppDefaults.articleFullscreenEnabled = false
|
||||
restoreBars(animated: animated)
|
||||
}
|
||||
|
||||
/// Shows the bars without leaving full screen mode, so the next article still opens full screen.
|
||||
func restoreBars(animated: Bool) {
|
||||
coordinator.showStatusBar()
|
||||
topShowBarsViewConstraint?.constant = 0
|
||||
bottomShowBarsViewConstraint?.constant = 0
|
||||
|
||||
Reference in new issue
Block a user