summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJin Cao <jinyan@google.com>2014-11-06 18:40:27 -0800
committerJin Cao <jinyan@google.com>2014-11-06 18:40:27 -0800
commit49744b029d48dd9082bc02cb1c00dc34d1619c85 (patch)
tree3af18eb1cbf59612f1d8b8d54a10c327304b34d0
parentd525772ac3de152c946c2b7486ff759b8a45f9f2 (diff)
downloadandroid_frameworks_opt_chips-49744b029d48dd9082bc02cb1c00dc34d1619c85.tar.gz
android_frameworks_opt_chips-49744b029d48dd9082bc02cb1c00dc34d1619c85.tar.bz2
android_frameworks_opt_chips-49744b029d48dd9082bc02cb1c00dc34d1619c85.zip
Make clearSelectedChip public
b/18218445 Change-Id: I56ba4367ce45cc4ce0ec934825fe021d60775c5e
-rw-r--r--src/com/android/ex/chips/RecipientEditTextView.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/ex/chips/RecipientEditTextView.java b/src/com/android/ex/chips/RecipientEditTextView.java
index 4adaf7a..9409e57 100644
--- a/src/com/android/ex/chips/RecipientEditTextView.java
+++ b/src/com/android/ex/chips/RecipientEditTextView.java
@@ -1625,7 +1625,11 @@ public class RecipientEditTextView extends MultiAutoCompleteTextView implements
return false;
}
- private void clearSelectedChip() {
+ /**
+ * Clears the selected chip if there is one (and dismissing any popups related to the selected
+ * chip in the process).
+ */
+ public void clearSelectedChip() {
if (mSelectedChip != null) {
unselectChip(mSelectedChip);
mSelectedChip = null;