From d72e383ce6974daed7fc392a64c321cf6ba55f4b Mon Sep 17 00:00:00 2001 From: sonora Date: Sat, 14 Jun 2014 10:02:23 +0200 Subject: [PATCH] Display "Search More" button to indicate you can increase search range in "Search POI by name" --- .../net/osmand/plus/activities/search/SearchPOIActivity.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/activities/search/SearchPOIActivity.java b/OsmAnd/src/net/osmand/plus/activities/search/SearchPOIActivity.java index f41c674ae1..a5c63fa286 100644 --- a/OsmAnd/src/net/osmand/plus/activities/search/SearchPOIActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/search/SearchPOIActivity.java @@ -439,6 +439,9 @@ public class SearchPOIActivity extends OsmandListActivity implements OsmAndCompa } else if (filter != null && !isNameFinderFilter() && !isSearchByNameFilter()) { title = R.string.search_POI_level_btn; 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) { title = R.string.search_button; enabled = (taskAlreadyFinished || currentSearchTask.getStatus() != Status.RUNNING) && filter.isSearchFurtherAvailable();