Don't track back navigation when the app is in the background
This commit is contained in:
parent
14e808971d
commit
66d9e882ad
@ -922,6 +922,10 @@ extension SceneCoordinator: UINavigationControllerDelegate {
|
|||||||
|
|
||||||
func navigationController(_ navigationController: UINavigationController, didShow viewController: UIViewController, animated: Bool) {
|
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 we are showing the Feeds and only the feeds start clearing stuff
|
||||||
if viewController === masterFeedViewController && !isThreePanelMode {
|
if viewController === masterFeedViewController && !isThreePanelMode {
|
||||||
activityManager.invalidateCurrentActivities()
|
activityManager.invalidateCurrentActivities()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user