diff options
| author | Kevin Lin <linkevin@google.com> | 2014-02-04 19:00:17 +0000 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2014-02-04 19:00:17 +0000 |
| commit | 58228018f7274a9490dad77dbdd06b2c5846eb6f (patch) | |
| tree | edea858b23e32fd2440de0fb4067b1bcf2518353 /chips | |
| parent | 018015991c3559e3861c3ef054aadd355821b4ef (diff) | |
| parent | a75fa12d54e386392adc0d4b54284a89ec191347 (diff) | |
| download | android_frameworks_ex-58228018f7274a9490dad77dbdd06b2c5846eb6f.tar.gz android_frameworks_ex-58228018f7274a9490dad77dbdd06b2c5846eb6f.tar.bz2 android_frameworks_ex-58228018f7274a9490dad77dbdd06b2c5846eb6f.zip | |
am a75fa12d: Fix chips library bugs related to setting the threshold to 1. - Dropdown not being dismissed after having at least one chip and typing a character and deleting it. - Selecting a chip, deleting it by pressing backspace, and entering another character bring
* commit 'a75fa12d54e386392adc0d4b54284a89ec191347':
Fix chips library bugs related to setting the threshold to 1. - Dropdown not being dismissed after having at least one chip and typing a character and deleting it. - Selecting a chip, deleting it by pressing backspace, and entering another character brings the deleted chip back.
Diffstat (limited to 'chips')
| -rw-r--r-- | chips/src/com/android/ex/chips/RecipientEditTextView.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chips/src/com/android/ex/chips/RecipientEditTextView.java b/chips/src/com/android/ex/chips/RecipientEditTextView.java index c2d68d2..448de5a 100644 --- a/chips/src/com/android/ex/chips/RecipientEditTextView.java +++ b/chips/src/com/android/ex/chips/RecipientEditTextView.java @@ -1431,9 +1431,11 @@ public class RecipientEditTextView extends MultiAutoCompleteTextView implements Spannable span = getSpannable(); DrawableRecipientChip[] chips = span.getSpans(start, end, DrawableRecipientChip.class); if (chips != null && chips.length > 0) { + dismissDropDown(); return; } } else if (isCompletedToken) { + dismissDropDown(); return; } super.performFiltering(text, keyCode); @@ -2293,6 +2295,7 @@ public class RecipientEditTextView extends MultiAutoCompleteTextView implements if (mMoreChip != null) { spannable.removeSpan(mMoreChip); } + clearSelectedChip(); return; } // Get whether there are any recipients pending addition to the |
