forked from organicmaps/organicmaps-tmp
[search] [ios] Disabled «No Results» alert.
This commit is contained in:
parent
df8297b3e4
commit
c7d36f8050
1 changed files with 11 additions and 9 deletions
|
@ -285,15 +285,17 @@ using TObservers = NSHashTable<__kindof TObserver>;
|
|||
|
||||
- (void)onSearchCompleted
|
||||
{
|
||||
BOOL allCompleted = self.viewportSearchCompleted;
|
||||
BOOL allEmpty = self.viewportResultsEmpty;
|
||||
if (IPAD)
|
||||
{
|
||||
allCompleted = allCompleted && self.everywhereSearchCompleted;
|
||||
allEmpty = allEmpty && m_everywhereResults.GetCount() == 0;
|
||||
}
|
||||
if (allCompleted && allEmpty)
|
||||
[[MWMAlertViewController activeAlertController] presentSearchNoResultsAlert];
|
||||
// TODO: Uncomment on release with search filters. Update to less annoying behavior.
|
||||
//
|
||||
// BOOL allCompleted = self.viewportSearchCompleted;
|
||||
// BOOL allEmpty = self.viewportResultsEmpty;
|
||||
// if (IPAD)
|
||||
// {
|
||||
// allCompleted = allCompleted && self.everywhereSearchCompleted;
|
||||
// allEmpty = allEmpty && m_everywhereResults.GetCount() == 0;
|
||||
// }
|
||||
// if (allCompleted && allEmpty)
|
||||
// [[MWMAlertViewController activeAlertController] presentSearchNoResultsAlert];
|
||||
|
||||
for (TObserver observer in self.observers)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue