Temporarily disable adding selected village to City list to see if this fixes an issue

This commit is contained in:
sonora 2015-01-14 11:19:41 +01:00
parent 31c7edc00b
commit ce2300b54e

View file

@ -173,9 +173,10 @@ public class SearchCityByNameActivity extends SearchByNameAbstractActivity<City>
@Override
public void itemSelected(City obj) {
settings.setLastSearchedCity(obj.getId(), obj.getName(region.useEnglishNames()), obj.getLocation());
if (region.getCityById(obj.getId(), obj.getName(region.useEnglishNames())) == null) {
region.addCityToPreloadedList((City) obj);
}
//Temporarily disable this to see if it fixes an issue
// if (region.getCityById(obj.getId(), obj.getName(region.useEnglishNames())) == null) {
// region.addCityToPreloadedList((City) obj);
// }
quitActivity(SearchStreetByNameActivity.class);
}