diff options
author | Mingyan Liu <mingyan.liu@spreadtrum.com> | 2019-07-30 14:05:11 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-07-30 14:05:11 -0700 |
commit | 029e606f8c10ba016f88985b0d4da36e95faf44e (patch) | |
tree | 53c36ced8fa3e3ee3d6995dc6072a226815ea23d | |
parent | 4cd50c83b248ebb33e597488a751fca6b8fd77c9 (diff) | |
parent | 08fae230aa81d065195b9902a3d8cb13731b8c97 (diff) | |
download | chips-029e606f8c10ba016f88985b0d4da36e95faf44e.tar.gz |
resolve same recipient being added when double click email address. am: e5c0625148
am: 08fae230aa
Change-Id: Icdbb6d304195b461a2de963c3b2b10bcb7da09a4
-rw-r--r-- | src/com/android/ex/chips/RecipientEditTextView.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/ex/chips/RecipientEditTextView.java b/src/com/android/ex/chips/RecipientEditTextView.java index bc55bd4..1fc7ec0 100644 --- a/src/com/android/ex/chips/RecipientEditTextView.java +++ b/src/com/android/ex/chips/RecipientEditTextView.java @@ -347,6 +347,9 @@ public class RecipientEditTextView extends MultiAutoCompleteTextView implements @Override public void onItemClick(AdapterView<?> adapterView,View view, int position, long rowId) { + if(mAlternatesPopup.getListView() != null){ + mAlternatesPopup.getListView().setOnItemClickListener(null); + } mAlternatesPopup.setOnItemClickListener(null); replaceChip(mSelectedChip, ((RecipientAlternatesAdapter) adapterView.getAdapter()) .getRecipientEntry(position)); |