[MAPSME-5081] [ios] Hid search action bar on empty results.

This commit is contained in:
Ilya Grechuhin 2017-08-14 15:35:15 +03:00 committed by burivuh
parent 6bf8b07db5
commit 3c1366ab10

View file

@ -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);