forked from organicmaps/organicmaps
[ios] Clear search results when opening search window
This commit is contained in:
parent
08b9ca5162
commit
33656e682f
1 changed files with 2 additions and 1 deletions
|
@ -157,7 +157,8 @@ __weak SearchView * selfPointer;
|
|||
|
||||
- (void)setState:(SearchViewState)state animated:(BOOL)animated withCallback:(BOOL)withCallback
|
||||
{
|
||||
if (_state == SearchViewStateResults && state == SearchViewStateHidden)
|
||||
// Clear search results on the map when clear in the search bar on the map is pressed or when we reopen search dialog
|
||||
if ((_state == SearchViewStateResults && state == SearchViewStateHidden) || state == SearchViewStateFullscreen)
|
||||
[self clearSearchResultsMode];
|
||||
|
||||
UIViewAnimationOptions options = UIViewAnimationOptionCurveEaseInOut;
|
||||
|
|
Loading…
Add table
Reference in a new issue