Exit search if Go To Feed is selected. Issue #1557

This commit is contained in:
Maurice Parker 2020-01-15 17:53:12 -07:00
parent 3e604e0b34
commit d68eccc55e
2 changed files with 8 additions and 0 deletions

View File

@ -198,6 +198,10 @@ class MasterTimelineViewController: UITableViewController, UndoableCommandRunner
updateUI()
}
func hideSearch() {
navigationItem.searchController?.isActive = false
}
func showSearchAll() {
navigationItem.searchController?.isActive = true

View File

@ -940,6 +940,10 @@ class SceneCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider {
}
func discloseFeed(_ feed: WebFeed, animated: Bool, completion: (() -> Void)? = nil) {
if isSearching {
masterTimelineViewController?.hideSearch()
}
masterFeedViewController.discloseFeed(feed, animated: animated) {
completion?()
}