fix NPE
This commit is contained in:
parent
05d0a94f65
commit
598fcb6a49
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ public class SearchCityByNameActivity extends SearchByNameAbstractActivity<City>
|
|||
@Override
|
||||
protected Comparator<? super City> createComparator() {
|
||||
final Collator cs = Collator.getInstance();
|
||||
final boolean en = region.useEnglishNames();
|
||||
final boolean en = getMyApplication().getSettings().usingEnglishNames();
|
||||
final StringMatcherMode startsWith = CollatorStringMatcher.StringMatcherMode.CHECK_ONLY_STARTS_WITH;
|
||||
return new CityComparator(startsWith, cs, en);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue