From 66d9e882adca39a05c80566f796aec376e012a7b Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Tue, 1 Oct 2019 04:31:42 -0500 Subject: [PATCH] Don't track back navigation when the app is in the background --- iOS/SceneCoordinator.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/iOS/SceneCoordinator.swift b/iOS/SceneCoordinator.swift index 74bf7fe83..a7803867c 100644 --- a/iOS/SceneCoordinator.swift +++ b/iOS/SceneCoordinator.swift @@ -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()