Fix city search
This commit is contained in:
parent
d9973447e3
commit
d822c78884
1 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@ public class SearchRegionByNameActivity extends SearchByNameAbstractActivity<Reg
|
|||
@Override
|
||||
public int compare(RegionAddressRepository lhs,
|
||||
RegionAddressRepository rhs) {
|
||||
return col.compare(lhs.getName(), rhs.getName());
|
||||
return col.compare(getText(lhs), getText(rhs));
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -68,7 +68,7 @@ public class SearchRegionByNameActivity extends SearchByNameAbstractActivity<Reg
|
|||
|
||||
@Override
|
||||
public void itemSelected(RegionAddressRepository obj) {
|
||||
((OsmandApplication) getApplication()).getSettings().setLastSearchedRegion(obj.getName(), obj.getEstimatedRegionCenter());
|
||||
((OsmandApplication) getApplication()).getSettings().setLastSearchedRegion(obj.getFileName(), obj.getEstimatedRegionCenter());
|
||||
quitActivity(SearchCityByNameActivity.class);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue