[Quick search] added isSearchMoreAvailable
This commit is contained in:
parent
f584f8e52f
commit
45ca0bcaaa
1 changed files with 1 additions and 3 deletions
|
@ -931,9 +931,7 @@ public class QuickSearchDialogFragment extends DialogFragment implements OsmAndC
|
||||||
}
|
}
|
||||||
|
|
||||||
private void addMoreButton() {
|
private void addMoreButton() {
|
||||||
if ((searchUICore.getPhrase().isUnknownSearchWordPresent() || searchUICore.getPhrase().isLastWord(ObjectType.POI_TYPE))
|
if (searchUICore.isSearchMoreAvailable(searchUICore.getPhrase())) {
|
||||||
&& searchUICore.getPhrase().getSettings().getRadiusLevel() < 7) {
|
|
||||||
|
|
||||||
QuickSearchMoreListItem moreListItem =
|
QuickSearchMoreListItem moreListItem =
|
||||||
new QuickSearchMoreListItem(app, app.getString(R.string.search_POI_level_btn).toUpperCase(), new OnClickListener() {
|
new QuickSearchMoreListItem(app, app.getString(R.string.search_POI_level_btn).toUpperCase(), new OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue