bug fixes

This commit is contained in:
cimenmus
2018-01-17 00:25:05 +03:00
parent 5e26f03a55
commit 934ff298d5
2 changed files with 7 additions and 1 deletions

2
.idea/misc.xml generated
View File

@@ -24,7 +24,7 @@
</value>
</option>
</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" />
</component>
<component name="ProjectType">

View File

@@ -47,6 +47,7 @@ public class AddAddressActivity extends BaseActivity {
@BindString(R.string.alert_fill_all_fields) String fillAllFieldsText;
@BindString(R.string.alert_select_country_first) String selectCountryFirstText;
@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<CountryModel> countryList = new ArrayList<>();
@@ -111,6 +112,11 @@ public class AddAddressActivity extends BaseActivity {
DialogHelper.showAlertDialog(this, fillAllFieldsText);
return false;
}
if(postcodePizzalinkEditText.getText().length() != 4){
DialogHelper.showAlertDialog(this, invalidPostcodeText);
return false;
}
return true;
}