From 7a9ad97b3257c81017d7a64b7e96cf8b84524ef5 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Fri, 13 Sep 2019 11:19:19 -0500 Subject: [PATCH] Don't reload feeds or articles if they are reselected. Issue #1017 --- iOS/SceneCoordinator.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/iOS/SceneCoordinator.swift b/iOS/SceneCoordinator.swift index 275a2d3ac..1c4dc99cd 100644 --- a/iOS/SceneCoordinator.swift +++ b/iOS/SceneCoordinator.swift @@ -495,6 +495,8 @@ class SceneCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider { } func selectFeed(_ indexPath: IndexPath?, automated: Bool = true) { + guard indexPath != currentFeedIndexPath else { return } + selectArticle(nil) currentFeedIndexPath = indexPath @@ -545,6 +547,8 @@ class SceneCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider { } func selectArticle(_ article: Article?, automated: Bool = true) { + guard article != currentArticle else { return } + currentArticle = article activityManager.reading(currentArticle)