small correction

This commit is contained in:
sonora 2014-06-14 10:55:19 +02:00
parent 635907636a
commit 3a616c5e97

View file

@ -439,11 +439,10 @@ 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; // TODO: for search-by-name case title initially needs to be search_button (even before typing a character)
//title = R.string.search_button;
title = R.string.search_POI_level_btn;
enabled = (taskAlreadyFinished || currentSearchTask.getStatus() != Status.RUNNING) && filter.isSearchFurtherAvailable(); enabled = (taskAlreadyFinished || currentSearchTask.getStatus() != Status.RUNNING) && filter.isSearchFurtherAvailable();
} }
if (searchPOILevel != null) { if (searchPOILevel != null) {