Don't track back navigation when the app is in the background

This commit is contained in:
Maurice Parker 2019-10-01 04:31:42 -05:00
parent 14e808971d
commit 66d9e882ad

View File

@ -922,6 +922,10 @@ extension SceneCoordinator: UINavigationControllerDelegate {
func navigationController(_ navigationController: UINavigationController, didShow viewController: UIViewController, animated: Bool) {
if UIApplication.shared.applicationState == .background {
return
}
// If we are showing the Feeds and only the feeds start clearing stuff
if viewController === masterFeedViewController && !isThreePanelMode {
activityManager.invalidateCurrentActivities()