From c7d36f805027dc8c9126193353da96352a08ef17 Mon Sep 17 00:00:00 2001 From: Ilya Grechuhin Date: Mon, 19 Dec 2016 10:56:30 +0300 Subject: [PATCH] =?UTF-8?q?[search]=20[ios]=20Disabled=20=C2=ABNo=20Result?= =?UTF-8?q?s=C2=BB=20alert.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- iphone/Maps/Core/Search/MWMSearch.mm | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/iphone/Maps/Core/Search/MWMSearch.mm b/iphone/Maps/Core/Search/MWMSearch.mm index 63fdc08f95..3dc7f82bf5 100644 --- a/iphone/Maps/Core/Search/MWMSearch.mm +++ b/iphone/Maps/Core/Search/MWMSearch.mm @@ -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) {