diff options
author | Ekin Oguz <ekinoguz@google.com> | 2016-07-13 10:58:19 -0700 |
---|---|---|
committer | Ekin Oguz <ekinoguz@google.com> | 2016-07-13 10:58:19 -0700 |
commit | e424aeb19189215d646fb0098de97a1300951edd (patch) | |
tree | a64d0f0fd6506fba055398bd91f9c9f96882f105 | |
parent | 087b818dae4783d7757c0bac151d60acb7692e4f (diff) | |
download | chips-e424aeb19189215d646fb0098de97a1300951edd.tar.gz |
Clear suggestions once chip is submitted.
This is fixing a bug where chips library is using suggestions from
previously typed and selected recipient for the current recipient.
BUG: 30106082
Change-Id: I95ae90558d516cc20b572f6c67a1657b34042163
-rw-r--r-- | src/com/android/ex/chips/RecipientEditTextView.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/ex/chips/RecipientEditTextView.java b/src/com/android/ex/chips/RecipientEditTextView.java index 0099ff1..f9b66d0 100644 --- a/src/com/android/ex/chips/RecipientEditTextView.java +++ b/src/com/android/ex/chips/RecipientEditTextView.java @@ -2058,6 +2058,11 @@ public class RecipientEditTextView extends MultiAutoCompleteTextView implements } sanitizeBetween(); + // Clear all the suggestions once an item is submitted. + if (getAdapter().getEntries() != null) { + getAdapter().getEntries().clear(); + } + return end - start; } |