Show no selection when timeline is selected in Three Panel Mode
This commit is contained in:
parent
e009a31ed7
commit
cf674d67b1
@ -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) {
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user