small addition to properly initialzie first search screen

This commit is contained in:
sonora 2016-06-10 13:52:34 +02:00
parent f9e1748deb
commit 2b0e7cc7a5

View file

@ -209,7 +209,7 @@ public class SearchPOIActivity extends OsmandListActivity implements OsmAndCompa
.show();
return true;
}
if (isNameSearch() && !Algorithms.objectEquals(filter.getFilterByName(), query)) {
if ((isNameSearch() && !Algorithms.objectEquals(filter.getFilterByName(), query)) || stopSearching) {
filter.clearPreviousZoom();
filter.setFilterByName(query);
runNewSearchQuery(location, NEW_SEARCH_INIT);