Fix naming in address tab

This commit is contained in:
Victor Shcherb 2013-04-01 19:07:41 +02:00
parent 2e8e928b80
commit e590fd0245

View file

@ -282,7 +282,7 @@ public class SearchAddressActivity extends Activity {
if(Algorithms.isEmpty(region)){
countryButton.setText(R.string.ChooseCountry);
} else {
countryButton.setText(region);
countryButton.setText(region.replace('_', ' '));
}
findViewById(R.id.ResetCity).setEnabled(!Algorithms.isEmpty(city) || !Algorithms.isEmpty(postcode));
if(Algorithms.isEmpty(city) && Algorithms.isEmpty(postcode)){
@ -291,7 +291,7 @@ public class SearchAddressActivity extends Activity {
if(!Algorithms.isEmpty(postcode)){
cityButton.setText(postcode);
} else {
cityButton.setText(city);
cityButton.setText(city.replace('_', ' '));
}
}
cityButton.setEnabled(!Algorithms.isEmpty(region));