Change to not animate on timeline fetcher changes

This commit is contained in:
Maurice Parker
2019-08-30 14:42:33 -05:00
parent 07ca61f7cf
commit ca0bdb3d35
2 changed files with 13 additions and 13 deletions

View File

@@ -119,16 +119,16 @@ class MasterTimelineViewController: UITableViewController, UndoableCommandRunner
reloadAllVisibleCells()
}
func reloadArticles() {
applyChanges(animate: true) { [weak self] in
self?.updateArticleSelection()
func reloadArticles(animate: Bool) {
applyChanges(animate: animate) { [weak self] in
self?.updateArticleSelection(animate: animate)
}
}
func updateArticleSelection() {
func updateArticleSelection(animate: Bool) {
if let indexPath = coordinator.currentArticleIndexPath {
if tableView.indexPathForSelectedRow != indexPath {
tableView.selectRow(at: indexPath, animated: true, scrollPosition: .middle)
tableView.selectRow(at: indexPath, animated: animate, scrollPosition: .middle)
}
}
updateUI()