Fix how we are clearing the article so that we don't glimpse the previous article when pushing from the Timeline

This commit is contained in:
Maurice Parker
2022-01-29 14:33:03 -08:00
parent 0b7929cded
commit 5b717777f4

View File

@@ -1341,9 +1341,7 @@ extension SceneCoordinator: UINavigationControllerDelegate {
// This happens when we are going to the next unread and we need to grab another timeline to continue. The
// ArticleViewController will be pushed, but we will briefly show the Timeline. Don't clear things out when that happens.
if viewController === masterTimelineViewController && lastMainControllerToAppear == .article {
currentArticle = nil
masterTimelineViewController?.updateArticleSelection(animations: [.scroll, .select, .navigation])
activityManager.invalidateReading()
selectArticle(nil)
// Restore any bars hidden by the article controller
showStatusBar()