Skip to content

Commit

Permalink
Merge branch 'feature/1.0.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
Denvar committed Feb 24, 2016
2 parents 8e09389 + e8fe0d7 commit 97c528c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
10 changes: 5 additions & 5 deletions library/src/main/java/com/doodle/android/chips/ChipsView.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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));
}

/**
Expand All @@ -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() {
Expand Down

0 comments on commit 97c528c

Please sign in to comment.