[Quick search] limit stable search to POI_TYPE
This commit is contained in:
parent
4e4e2fcb07
commit
30ea0c5e6c
1 changed files with 2 additions and 1 deletions
|
@ -935,7 +935,8 @@ public class QuickSearchDialogFragment extends DialogFragment implements OsmAndC
|
|||
private boolean needAppend(SearchPhrase phrase) {
|
||||
return getResultCollection() != null && (getResultCollection().getPhrase() == phrase
|
||||
|| (getResultCollection().getPhrase().isLastWord(ObjectType.POI_TYPE) && phrase.isLastWord(ObjectType.POI_TYPE)
|
||||
&& getResultCollection().getPhrase().getLastSelectedWord().getWord().equals(phrase.getLastSelectedWord().getWord())));
|
||||
&& getResultCollection().getPhrase().getLastSelectedWord().getWord().equals(phrase.getLastSelectedWord().getWord())
|
||||
&& !getResultCollection().getPhrase().isUnknownSearchWordPresent() && !phrase.isUnknownSearchWordPresent()));
|
||||
}
|
||||
|
||||
public void completeQueryWithObject(SearchResult sr) {
|
||||
|
|
Loading…
Reference in a new issue