diff options
| author | Tom Taylor <tomtaylor@google.com> | 2012-04-27 13:14:05 -0700 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-04-27 13:14:05 -0700 |
| commit | 9fe03f325deaf514a07bafe4a4d10fe1a8c5cd8a (patch) | |
| tree | 4990204c88a2d04fb724faa5ded1f361fb2ba34d | |
| parent | 6ea2a74088e3334b296dee2c83e7cbfa415f98db (diff) | |
| parent | 5e05ba80bdb12dfb5f40f202f57c55f5b68a311a (diff) | |
| download | android_frameworks_ex-9fe03f325deaf514a07bafe4a4d10fe1a8c5cd8a.tar.gz android_frameworks_ex-9fe03f325deaf514a07bafe4a4d10fe1a8c5cd8a.tar.bz2 android_frameworks_ex-9fe03f325deaf514a07bafe4a4d10fe1a8c5cd8a.zip | |
Merge "Fix an crash if you pass a SpannableString" into jb-dev
| -rw-r--r-- | chips/src/com/android/ex/chips/RecipientEditTextView.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chips/src/com/android/ex/chips/RecipientEditTextView.java b/chips/src/com/android/ex/chips/RecipientEditTextView.java index 0265ea1..e9b5cf9 100644 --- a/chips/src/com/android/ex/chips/RecipientEditTextView.java +++ b/chips/src/com/android/ex/chips/RecipientEditTextView.java @@ -313,12 +313,12 @@ public class RecipientEditTextView extends MultiAutoCompleteTextView implements } super.append(text, start, end); if (!TextUtils.isEmpty(text) && TextUtils.getTrimmedLength(text) > 0) { - final String displayString = (String) text; + final String displayString = text.toString(); int seperatorPos = displayString.indexOf(COMMIT_CHAR_COMMA); if (seperatorPos != 0 && !TextUtils.isEmpty(displayString) && TextUtils.getTrimmedLength(displayString) > 0) { mPendingChipsCount++; - mPendingChips.add((String)text); + mPendingChips.add(text.toString()); } } // Put a message on the queue to make sure we ALWAYS handle pending chips. |
