summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Lin <linkevin@google.com>2014-02-04 19:11:00 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-02-04 19:11:00 +0000
commit6f33043ab5d3edcd855eef7793f7adcbdccae5bd (patch)
treedfe231a30872d10d085baead55beab7504abf847
parentb65711a4213ccb8deac1c462e6aa1fc700a235e5 (diff)
parent6396ce038057cb526e92003d96665ebae0ed7143 (diff)
downloadandroid_frameworks_ex-6f33043ab5d3edcd855eef7793f7adcbdccae5bd.tar.gz
android_frameworks_ex-6f33043ab5d3edcd855eef7793f7adcbdccae5bd.tar.bz2
android_frameworks_ex-6f33043ab5d3edcd855eef7793f7adcbdccae5bd.zip
am 6396ce03: am 58228018: 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 enteri
* commit '6396ce038057cb526e92003d96665ebae0ed7143': 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.
-rw-r--r--chips/src/com/android/ex/chips/RecipientEditTextView.java3
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