Display "Search More" button to indicate you can increase search range in "Search POI by name"

This commit is contained in:
sonora 2014-06-14 10:02:23 +02:00
parent f46f0df615
commit d72e383ce6

View file

@ -439,6 +439,9 @@ public class SearchPOIActivity extends OsmandListActivity implements OsmAndCompa
} else if (filter != null && !isNameFinderFilter() && !isSearchByNameFilter()) { } else if (filter != null && !isNameFinderFilter() && !isSearchByNameFilter()) {
title = R.string.search_POI_level_btn; title = R.string.search_POI_level_btn;
enabled = (taskAlreadyFinished || currentSearchTask.getStatus() != Status.RUNNING) && filter.isSearchFurtherAvailable(); enabled = (taskAlreadyFinished || currentSearchTask.getStatus() != Status.RUNNING) && filter.isSearchFurtherAvailable();
} else if ((filter != null) && (searchPOILevel != null)) {
title = R.string.search_POI_level_btn;
enabled = (taskAlreadyFinished || currentSearchTask.getStatus() != Status.RUNNING) && filter.isSearchFurtherAvailable();
} else if (filter != null) { } else if (filter != null) {
title = R.string.search_button; title = R.string.search_button;
enabled = (taskAlreadyFinished || currentSearchTask.getStatus() != Status.RUNNING) && filter.isSearchFurtherAvailable(); enabled = (taskAlreadyFinished || currentSearchTask.getStatus() != Status.RUNNING) && filter.isSearchFurtherAvailable();