Skip to content

Commit

Permalink
Adding the ability to get the current text from the autocomplete view.
Browse files Browse the repository at this point in the history
  • Loading branch information
milos192 committed Dec 1, 2016
1 parent 1a1f025 commit 2b71d20
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions library/src/main/java/com/seraphim/chips/ChipsView.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import android.net.Uri;
import android.os.Build;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.content.ContextCompat;
import android.text.Editable;
import android.text.InputType;
Expand Down Expand Up @@ -320,6 +321,11 @@ public void setHint(@NonNull String hint) {
editText.setHint(hint);
}
}

@Nullable
public String getText() {
return editText.getText().toString();
}
// </editor-fold>

// <editor-fold desc="Private Methods">
Expand Down

0 comments on commit 2b71d20

Please sign in to comment.