[Quick search] added isSearchMoreAvailable

This commit is contained in:
Alexey Kulish 2016-08-08 09:36:43 +03:00
parent f584f8e52f
commit 45ca0bcaaa

View file

@ -931,9 +931,7 @@ public class QuickSearchDialogFragment extends DialogFragment implements OsmAndC
}
private void addMoreButton() {
if ((searchUICore.getPhrase().isUnknownSearchWordPresent() || searchUICore.getPhrase().isLastWord(ObjectType.POI_TYPE))
&& searchUICore.getPhrase().getSettings().getRadiusLevel() < 7) {
if (searchUICore.isSearchMoreAvailable(searchUICore.getPhrase())) {
QuickSearchMoreListItem moreListItem =
new QuickSearchMoreListItem(app, app.getString(R.string.search_POI_level_btn).toUpperCase(), new OnClickListener() {
@Override