refactored some code
This commit is contained in:
parent
a4fce4bb16
commit
4591866a71
1 changed files with 1 additions and 0 deletions
|
@ -375,6 +375,7 @@ public class QuickSearchListAdapter extends ArrayAdapter<QuickSearchListItem> {
|
||||||
String searchPhrase = searchUICore.getPhrase().getText(true);
|
String searchPhrase = searchUICore.getPhrase().getText(true);
|
||||||
SearchPhrase.NameStringMatcher nm = new SearchPhrase.NameStringMatcher(searchPhrase,
|
SearchPhrase.NameStringMatcher nm = new SearchPhrase.NameStringMatcher(searchPhrase,
|
||||||
CollatorStringMatcher.StringMatcherMode.CHECK_EQUALS_FROM_SPACE);
|
CollatorStringMatcher.StringMatcherMode.CHECK_EQUALS_FROM_SPACE);
|
||||||
|
|
||||||
for (String syn : synonyms) {
|
for (String syn : synonyms) {
|
||||||
if (nm.matches(abstractPoiType.getEnTranslation())) {
|
if (nm.matches(abstractPoiType.getEnTranslation())) {
|
||||||
desc = listItem.getTypeName() + " (" + abstractPoiType.getEnTranslation() + ")";
|
desc = listItem.getTypeName() + " (" + abstractPoiType.getEnTranslation() + ")";
|
||||||
|
|
Loading…
Reference in a new issue