bug fixes
This commit is contained in:
2
.idea/misc.xml
generated
2
.idea/misc.xml
generated
@@ -24,7 +24,7 @@
|
|||||||
</value>
|
</value>
|
||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||||
<output url="file://$PROJECT_DIR$/build/classes" />
|
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectType">
|
<component name="ProjectType">
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ public class AddAddressActivity extends BaseActivity {
|
|||||||
@BindString(R.string.alert_fill_all_fields) String fillAllFieldsText;
|
@BindString(R.string.alert_fill_all_fields) String fillAllFieldsText;
|
||||||
@BindString(R.string.alert_select_country_first) String selectCountryFirstText;
|
@BindString(R.string.alert_select_country_first) String selectCountryFirstText;
|
||||||
@BindString(R.string.new_address_added) String newAddressAddedText;
|
@BindString(R.string.new_address_added) String newAddressAddedText;
|
||||||
|
@BindString(R.string.alert_invalid_post_code) String invalidPostcodeText;
|
||||||
|
|
||||||
private ArrayList<CityModel> cityList = new ArrayList<>();
|
private ArrayList<CityModel> cityList = new ArrayList<>();
|
||||||
private ArrayList<CountryModel> countryList = new ArrayList<>();
|
private ArrayList<CountryModel> countryList = new ArrayList<>();
|
||||||
@@ -111,6 +112,11 @@ public class AddAddressActivity extends BaseActivity {
|
|||||||
DialogHelper.showAlertDialog(this, fillAllFieldsText);
|
DialogHelper.showAlertDialog(this, fillAllFieldsText);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(postcodePizzalinkEditText.getText().length() != 4){
|
||||||
|
DialogHelper.showAlertDialog(this, invalidPostcodeText);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user