Ensure we chipify the original text
We were tokenizing the addresses, then attempting to chipify what we
believed was the ideal way to represent that address as a string. If
this did not match the actual text, it resulted in not everything
being turned into a chip.
By actually using the original text to determine what we make a chip,
we can ensure that everything is always turned into a chip.
Bug: 8321211
Change-Id: I5e7b4d57b6b8895ae5211818451075f461c14eaf
diff --git a/chips/src/com/android/ex/chips/RecipientEditTextView.java b/chips/src/com/android/ex/chips/RecipientEditTextView.java
index 43cb956..9576d68 100644
--- a/chips/src/com/android/ex/chips/RecipientEditTextView.java
+++ b/chips/src/com/android/ex/chips/RecipientEditTextView.java
@@ -947,7 +947,7 @@
if (mTemporaryRecipients == null) {
mTemporaryRecipients = new ArrayList<RecipientChip>();
}
- chip.setOriginalText(chipText.toString());
+ chip.setOriginalText(token);
mTemporaryRecipients.add(chip);
}
}