From 0ecfb05b0e51d0eb77b6ba0ecc72960c5e4c40d3 Mon Sep 17 00:00:00 2001 From: Giom Foret Date: Fri, 10 Nov 2017 17:28:03 +0100 Subject: [PATCH] Bug Fix: Share extension improvements #1611 - display the search input by default - on searching for something, the search filter seems to clear instantly on selecting a destination NOK. --- RiotShareExtension/ViewController/RoomsListViewController.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/RiotShareExtension/ViewController/RoomsListViewController.m b/RiotShareExtension/ViewController/RoomsListViewController.m index 90bcae16b..687701a54 100644 --- a/RiotShareExtension/ViewController/RoomsListViewController.m +++ b/RiotShareExtension/ViewController/RoomsListViewController.m @@ -105,9 +105,8 @@ // Check conditions to display the fake search bar into the table header if (self.recentsSearchBar.isHidden && self.recentsTableView.tableHeaderView == nil) { - // Add the search bar by hiding it by default. + // Add the search bar by showing it by default. self.recentsTableView.tableHeaderView = _tableSearchBar; - self.recentsTableView.contentOffset = CGPointMake(0, self.recentsTableView.contentOffset.y + _tableSearchBar.frame.size.height); } } @@ -279,7 +278,6 @@ - (void)searchBarTextDidEndEditing:(UISearchBar *)searchBar { [self.recentsSearchBar setShowsCancelButton:NO animated:NO]; - [self.dataSource searchWithPatterns:nil]; } #pragma mark - UIScrollViewDelegate