Show no selection when timeline is selected in Three Panel Mode

This commit is contained in:
Maurice Parker 2019-07-27 14:36:01 -05:00
parent e009a31ed7
commit cf674d67b1
2 changed files with 8 additions and 0 deletions

View File

@ -452,6 +452,13 @@ class AppCoordinator: NSObject, UndoableCommandRunner {
currentMasterIndexPath = indexPath
navControllerForTimeline().pushViewController(masterTimelineViewController!, animated: true)
}
if isThreePanelMode {
let systemMessageViewController = UIStoryboard.main.instantiateController(ofType: SystemMessageViewController.self)
let targetSplitController = targetSplitForDetail()
let controller = addNavControllerIfNecessary(systemMessageViewController, split: targetSplitController, showBackButton: false)
targetSplitController.showDetailViewController(controller, sender: self)
}
}
func selectArticle(_ indexPath: IndexPath) {

View File

@ -352,6 +352,7 @@ private extension MasterTimelineViewController {
title = coordinator.timelineName
navigationController?.title = coordinator.timelineName
tableView.selectRow(at: nil, animated: false, scrollPosition: .top)
if coordinator.articles.count > 0 {
tableView.scrollToRow(at: IndexPath(row: 0, section: 0), at: .top, animated: false)
}