Force the scroll even if the currently selected row is the same

This commit is contained in:
Maurice Parker 2019-09-10 07:48:40 -05:00
parent 6708017b5d
commit e3361abc77
1 changed files with 1 additions and 1 deletions

View File

@ -670,7 +670,7 @@ private extension MasterFeedViewController {
}
func restoreSelectionIfNecessary() {
if let indexPath = coordinator.masterFeedIndexPathForCurrentTimeline(), indexPath != tableView.indexPathForSelectedRow {
if let indexPath = coordinator.masterFeedIndexPathForCurrentTimeline() {
tableView.selectRowAndScrollIfNotVisible(at: indexPath, animated: false, deselect: coordinator.isRootSplitCollapsed)
}
}