forked from organicmaps/organicmaps
Start search indicator only if search is actually started.
This commit is contained in:
parent
212ce56c40
commit
4259281d61
1 changed files with 5 additions and 4 deletions
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue