From 4259281d61ce1351b73237d375dc62642549d2b8 Mon Sep 17 00:00:00 2001 From: vng Date: Wed, 17 Oct 2012 21:21:01 +0300 Subject: [PATCH] Start search indicator only if search is actually started. --- iphone/Maps/Classes/SearchVC.mm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/iphone/Maps/Classes/SearchVC.mm b/iphone/Maps/Classes/SearchVC.mm index 3bd6c668fd..963ae928bc 100644 --- a/iphone/Maps/Classes/SearchVC.mm +++ b/iphone/Maps/Classes/SearchVC.mm @@ -274,8 +274,9 @@ static void OnSearchResultCallback(search::Results const & res) // Search even with empty string. search::SearchParams params; [self fillSearchParams:params withText:searchText]; - [self showIndicator]; - m_framework->Search(params); + + if (m_framework->Search(params)) + [self showIndicator]; } - (void)onCloseButton:(id)sender @@ -493,8 +494,8 @@ static void OnSearchResultCallback(search::Results const & res) search::SearchParams params; [self fillSearchParams:params withText:queryString]; - [self showIndicator]; - m_framework->Search(params); + if (m_framework->Search(params)) + [self showIndicator]; } }