From 7e30bba16a5342df94bb3410166d60d3711781fe Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Wed, 9 Oct 2019 21:39:11 -0500 Subject: [PATCH] Fix next unread and first unread timeline animations --- iOS/MasterTimeline/MasterTimelineViewController.swift | 2 +- iOS/SceneCoordinator.swift | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/iOS/MasterTimeline/MasterTimelineViewController.swift b/iOS/MasterTimeline/MasterTimelineViewController.swift index 56ec766f8..e400514af 100644 --- a/iOS/MasterTimeline/MasterTimelineViewController.swift +++ b/iOS/MasterTimeline/MasterTimelineViewController.swift @@ -102,7 +102,7 @@ class MasterTimelineViewController: UITableViewController, UndoableCommandRunner } @IBAction func firstUnread(_ sender: Any) { - coordinator.selectNextUnread() + coordinator.selectFirstUnread() } // MARK: Keyboard shortcuts diff --git a/iOS/SceneCoordinator.swift b/iOS/SceneCoordinator.swift index 6ad03b19a..a74707394 100644 --- a/iOS/SceneCoordinator.swift +++ b/iOS/SceneCoordinator.swift @@ -1173,7 +1173,7 @@ private extension SceneCoordinator { @discardableResult func selectFirstUnreadArticleInTimeline() -> Bool { - return selectNextArticleInTimeline(startingRow: 0) + return selectNextArticleInTimeline(startingRow: 0, animated: true) } @discardableResult @@ -1186,10 +1186,10 @@ private extension SceneCoordinator { } }() - return selectNextArticleInTimeline(startingRow: startingRow) + return selectNextArticleInTimeline(startingRow: startingRow, animated: false) } - func selectNextArticleInTimeline(startingRow: Int) -> Bool { + func selectNextArticleInTimeline(startingRow: Int, animated: Bool) -> Bool { guard startingRow < articles.count else { return false @@ -1198,7 +1198,7 @@ private extension SceneCoordinator { for i in startingRow..