FIx navigation feed clearing code so that it works in three panel mode

This commit is contained in:
Maurice Parker 2019-09-10 17:18:10 -05:00
parent 4fa9ec0828
commit 670ae92f04

View File

@ -1049,16 +1049,17 @@ extension SceneCoordinator: UISplitViewControllerDelegate {
// MARK: UINavigationControllerDelegate
extension SceneCoordinator: UINavigationControllerDelegate {
func navigationController(_ navigationController: UINavigationController, didShow viewController: UIViewController, animated: Bool) {
if viewController === masterFeedViewController {
// If we are showing the Feeds and only the feeds start clearing stuff
if viewController === masterFeedViewController && !isThreePanelMode {
activityManager.invalidateCurrentActivities()
if !rootSplitViewController.isCollapsed {
selectFeed(nil)
}
selectFeed(nil)
}
}
}
// MARK: Private