diff --git a/library/build.gradle b/library/build.gradle index dbbe8bf..b1d9700 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -7,8 +7,8 @@ android { defaultConfig { minSdkVersion 16 targetSdkVersion 23 - versionCode 5 - versionName "1.0.4" + versionCode 6 + versionName "1.0.5" setProperty("archivesBaseName", "android-material-chips-$versionName") } buildTypes { diff --git a/library/src/main/java/com/doodle/android/chips/ChipsView.java b/library/src/main/java/com/doodle/android/chips/ChipsView.java index 037220c..560f169 100644 --- a/library/src/main/java/com/doodle/android/chips/ChipsView.java +++ b/library/src/main/java/com/doodle/android/chips/ChipsView.java @@ -278,7 +278,7 @@ public Contact tryToRecognizeAddress() { String text = mEditText.getText().toString(); if (!TextUtils.isEmpty(text)) { if (Common.isValidPhonenumber(text)) { - return new Contact(text, "", null, text, "", null); + return new Contact("", text, "", null, text, "", null); } } return null; @@ -344,12 +344,12 @@ private void onEnterPressed(String text) { } private void onEmailRecognized(String email) { - onEmailRecognized(new Contact(email, "", null, "", email, null)); + onEmailRecognized(new Contact("", email, "", null, "", email, null)); } private void onPhonenumberRecognized(String phonenumber) { - onPhonenumberRecognized(new Contact(phonenumber, "", null, phonenumber, "", null)); + onPhonenumberRecognized(new Contact("", phonenumber, "", null, phonenumber, "", null)); } private void onEmailRecognized(Contact contact) { @@ -479,7 +479,7 @@ public void setChipsListener(ChipsListener chipsListener) { @Override public void onDialogEmailEntered(String email, String initialText) { - onEmailRecognized(new Contact(initialText, "", initialText, "", email, null)); + onEmailRecognized(new Contact("", initialText, "", initialText, "", email, null)); } /** @@ -491,7 +491,7 @@ public void setChipsValidator(ChipValidator mChipsValidator) { @Override public void onDialogPhonenumberEntered(String phonenumber, String initialText) { - onPhonenumberRecognized(new Contact(initialText, "", initialText, phonenumber, "", null)); + onPhonenumberRecognized(new Contact("", initialText, "", initialText, phonenumber, "", null)); } public EditText getEditText() {