summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJin Cao <jinyan@google.com>2014-11-07 02:44:35 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-11-07 02:44:35 +0000
commit662ccbe4c86f59c734d6e523760806bbd6d4fbcc (patch)
treefdb95d609c262662da8529914f04d47b075ba4bd
parent732fe3e7a78c23c17dab039b9b6540199a6352b7 (diff)
parent49744b029d48dd9082bc02cb1c00dc34d1619c85 (diff)
downloadandroid_frameworks_opt_chips-662ccbe4c86f59c734d6e523760806bbd6d4fbcc.tar.gz
android_frameworks_opt_chips-662ccbe4c86f59c734d6e523760806bbd6d4fbcc.tar.bz2
android_frameworks_opt_chips-662ccbe4c86f59c734d6e523760806bbd6d4fbcc.zip
Merge "Make clearSelectedChip public" into ub-chips-cranbrook
-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 f00842b..b37aa37 100644
--- a/src/com/android/ex/chips/RecipientEditTextView.java
+++ b/src/com/android/ex/chips/RecipientEditTextView.java
@@ -1626,7 +1626,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;