refactored some code

This commit is contained in:
Chumva 2018-03-20 19:17:06 +02:00
parent a4fce4bb16
commit 4591866a71

View file

@ -375,6 +375,7 @@ public class QuickSearchListAdapter extends ArrayAdapter<QuickSearchListItem> {
String searchPhrase = searchUICore.getPhrase().getText(true);
SearchPhrase.NameStringMatcher nm = new SearchPhrase.NameStringMatcher(searchPhrase,
CollatorStringMatcher.StringMatcherMode.CHECK_EQUALS_FROM_SPACE);
for (String syn : synonyms) {
if (nm.matches(abstractPoiType.getEnTranslation())) {
desc = listItem.getTypeName() + " (" + abstractPoiType.getEnTranslation() + ")";