diff options
author | mindyp <mindyp@google.com> | 2012-11-07 09:33:11 -0800 |
---|---|---|
committer | mindyp <mindyp@google.com> | 2012-11-07 09:33:11 -0800 |
commit | bc8820f28fae94349e41ad09e166b0537ddd1377 (patch) | |
tree | 3fe02106cfc3ab8d7ee8eacd9b3345923b32144c /chips/src | |
parent | dab17fcff4efe640287a8cce7f82bd305e2c1fcf (diff) | |
download | android_frameworks_ex-bc8820f28fae94349e41ad09e166b0537ddd1377.tar.gz android_frameworks_ex-bc8820f28fae94349e41ad09e166b0537ddd1377.tar.bz2 android_frameworks_ex-bc8820f28fae94349e41ad09e166b0537ddd1377.zip |
Make sure that we take the existng temporary contact, where available.
Temporary contact entry will give us display name and address if it has it
when there is no contact match
Fixes part of b/7481045 recipient address briefly drawn w/o friendly name
Change-Id: Id5cf6b770d1179c81d9c9b808af4681e632d18a7
Diffstat (limited to 'chips/src')
-rw-r--r-- | chips/src/com/android/ex/chips/RecipientEditTextView.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chips/src/com/android/ex/chips/RecipientEditTextView.java b/chips/src/com/android/ex/chips/RecipientEditTextView.java index 7a3c619..011b1e9 100644 --- a/chips/src/com/android/ex/chips/RecipientEditTextView.java +++ b/chips/src/com/android/ex/chips/RecipientEditTextView.java @@ -2437,9 +2437,10 @@ public class RecipientEditTextView extends MultiAutoCompleteTextView implements // Replace this. RecipientEntry entry = createValidatedEntry(entries.get(tokenizeAddress( temp.getEntry().getDestination()).toLowerCase())); + // If we don't have a validated contact match, just use the + // entry as it existed before. if (entry == null && !isPhoneQuery()) { - entry = RecipientEntry.constructFakeEntry(Rfc822Tokenizer.tokenize(temp - .getEntry().getDestination())[0].getAddress()); + entry = temp.getEntry(); } final RecipientEntry tempEntry = entry; if (tempEntry != null) { |