diff options
author | Kevin Lin <linkevin@google.com> | 2014-06-06 00:21:26 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-06-06 00:21:26 +0000 |
commit | 8ff93bf687708dce546159a7953c4b9415af3160 (patch) | |
tree | 6343727f8fd9c01791a9dcd70cbcab1fae1ccdeb | |
parent | fd835f6cdf0c9c4f7d0424adbc2f4751d4082c05 (diff) | |
parent | 3e05cfa55dbb8840adaf3dfcf31a5a30ce129c9e (diff) | |
download | android_frameworks_opt_chips-8ff93bf687708dce546159a7953c4b9415af3160.tar.gz android_frameworks_opt_chips-8ff93bf687708dce546159a7953c4b9415af3160.tar.bz2 android_frameworks_opt_chips-8ff93bf687708dce546159a7953c4b9415af3160.zip |
am 3e05cfa5: Add a callback to RecipientEditTextView for whenever it creates a chip.
* commit '3e05cfa55dbb8840adaf3dfcf31a5a30ce129c9e':
Add a callback to RecipientEditTextView for whenever it creates a chip.
-rw-r--r-- | src/com/android/ex/chips/RecipientEditTextView.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/ex/chips/RecipientEditTextView.java b/src/com/android/ex/chips/RecipientEditTextView.java index 042dd2a..fdf58a6 100644 --- a/src/com/android/ex/chips/RecipientEditTextView.java +++ b/src/com/android/ex/chips/RecipientEditTextView.java @@ -1830,10 +1830,17 @@ public class RecipientEditTextView extends MultiAutoCompleteTextView implements return null; } } + onChipCreated(entry); return chipText; } /** + * A callback for subclasses to use to know when a chip was created with the + * given RecipientEntry. + */ + protected void onChipCreated(RecipientEntry entry) {} + + /** * When an item in the suggestions list has been clicked, create a chip from the * contact information of the selected item. */ |