commit | 49744b029d48dd9082bc02cb1c00dc34d1619c85 | [log] [tgz] |
---|---|---|
author | Jin Cao <jinyan@google.com> | Thu Nov 06 18:40:27 2014 -0800 |
committer | Jin Cao <jinyan@google.com> | Thu Nov 06 18:40:27 2014 -0800 |
tree | 3af18eb1cbf59612f1d8b8d54a10c327304b34d0 | |
parent | d525772ac3de152c946c2b7486ff759b8a45f9f2 [diff] |
Make clearSelectedChip public b/18218445 Change-Id: I56ba4367ce45cc4ce0ec934825fe021d60775c5e
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 @@ 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;