summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormindyp <mindyp@google.com>2012-09-10 15:47:40 -0700
committermindyp <mindyp@google.com>2012-09-10 15:47:40 -0700
commit6c66847624945b3caca9607c61669f4766e7f39e (patch)
treec8af95695542841dd7f29ea8ebec8e260450c0e3
parent3aa118e72c877b4c176d025c56bfad2e518bf1ce (diff)
downloadandroid_frameworks_ex-6c66847624945b3caca9607c61669f4766e7f39e.tar.gz
android_frameworks_ex-6c66847624945b3caca9607c61669f4766e7f39e.tar.bz2
android_frameworks_ex-6c66847624945b3caca9607c61669f4766e7f39e.zip
We add the separator ourselves later if it wasnt specified in append.
Fixes b/7137725 Attendees are lost after editing Change-Id: I48cecde9e5e2e9e8648393c8b71e6911cd1cbc9f
-rw-r--r--chips/src/com/android/ex/chips/RecipientEditTextView.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/chips/src/com/android/ex/chips/RecipientEditTextView.java b/chips/src/com/android/ex/chips/RecipientEditTextView.java
index 26de2fa..b1cab6c 100644
--- a/chips/src/com/android/ex/chips/RecipientEditTextView.java
+++ b/chips/src/com/android/ex/chips/RecipientEditTextView.java
@@ -361,11 +361,8 @@ public class RecipientEditTextView extends MultiAutoCompleteTextView implements
separatorPos = parseDisplayString.lastIndexOf(COMMIT_CHAR_COMMA,
endQuotedTextPos);
}
- if (separatorPos == -1) {
- separatorPos = displayString.length();
- }
}
- if (separatorPos > 0 && !TextUtils.isEmpty(displayString)
+ if (!TextUtils.isEmpty(displayString)
&& TextUtils.getTrimmedLength(displayString) > 0) {
mPendingChipsCount++;
mPendingChips.add(text.toString());