forked from organicmaps/organicmaps-tmp
[MAPSME-5081] [ios] Hid search action bar on empty results.
This commit is contained in:
parent
6bf8b07db5
commit
3c1366ab10
1 changed files with 4 additions and 2 deletions
|
@ -347,8 +347,10 @@ using Observers = NSHashTable<Observer>;
|
|||
if (self.state != MWMSearchManagerStateTableSearch)
|
||||
return;
|
||||
[self animateConstraints:^{
|
||||
BOOL hideActionBar = false;
|
||||
if (IPAD)
|
||||
BOOL hideActionBar = NO;
|
||||
if ([MWMSearch resultsCount] == 0)
|
||||
hideActionBar = YES;
|
||||
else if (IPAD)
|
||||
hideActionBar = !([MWMSearch isHotelResults] || [MWMSearch hasFilter]);
|
||||
else
|
||||
hideActionBar = ([MWMSearch suggestionsCount] != 0);
|
||||
|
|
Loading…
Add table
Reference in a new issue