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.
This commit is contained in:
Giom Foret
2017-11-10 17:28:03 +01:00
parent a0dfe33b09
commit bd3b85cee9
@@ -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