add some empty lines grouping code

This commit is contained in:
sonora 2015-01-13 23:21:00 +01:00
parent 6e1a3c216c
commit d8ac80ae12

View file

@ -217,8 +217,8 @@ public class SearchAddressFragment extends SherlockFragment {
@Override @Override
public void onClick(View v) { public void onClick(View v) {
street = null; street = null;
building = null;
street2 = null; street2 = null;
building = null;
searchPoint = null; searchPoint = null;
updateUI(); updateUI();
} }
@ -382,13 +382,13 @@ public class SearchAddressFragment extends SherlockFragment {
} }
protected void updateUI(){ protected void updateUI(){
findViewById(R.id.ResetCountry).setEnabled(!Algorithms.isEmpty(region)); findViewById(R.id.ResetCountry).setEnabled(!Algorithms.isEmpty(region));
if(Algorithms.isEmpty(region)){ if(Algorithms.isEmpty(region)){
countryButton.setText(R.string.ChooseCountry); countryButton.setText(R.string.ChooseCountry);
} else { } else {
countryButton.setText(region.replace('_', ' ')); countryButton.setText(region.replace('_', ' '));
} }
findViewById(R.id.ResetCity).setEnabled(!Algorithms.isEmpty(city) || !Algorithms.isEmpty(postcode)); findViewById(R.id.ResetCity).setEnabled(!Algorithms.isEmpty(city) || !Algorithms.isEmpty(postcode));
if(Algorithms.isEmpty(city) && Algorithms.isEmpty(postcode)){ if(Algorithms.isEmpty(city) && Algorithms.isEmpty(postcode)){
cityButton.setText(R.string.choose_city); cityButton.setText(R.string.choose_city);
@ -418,7 +418,6 @@ public class SearchAddressFragment extends SherlockFragment {
((RadioButton)findViewById(R.id.RadioIntersStreet)).setChecked(true); ((RadioButton)findViewById(R.id.RadioIntersStreet)).setChecked(true);
} }
updateBuildingSection(); updateBuildingSection();
} }
public void loadData() { public void loadData() {