summaryrefslogtreecommitdiffstats
path: root/chips/src/com/android/ex/chips/RecipientEditTextView.java
diff options
context:
space:
mode:
authorTom Taylor <tomtaylor@google.com>2013-03-21 10:28:50 -0700
committerScott Kennedy <skennedy@google.com>2013-03-21 13:09:23 -0700
commitf9171bb324685aef7d274cd43427512a56f22522 (patch)
treee4a7532b6e3622847029e06066c3565b22bcc301 /chips/src/com/android/ex/chips/RecipientEditTextView.java
parent52dba50b0e2dfe735484248c6f729950fe4fb7b8 (diff)
downloadandroid_frameworks_ex-f9171bb324685aef7d274cd43427512a56f22522.tar.gz
android_frameworks_ex-f9171bb324685aef7d274cd43427512a56f22522.tar.bz2
android_frameworks_ex-f9171bb324685aef7d274cd43427512a56f22522.zip
Cherry-pick: Area code gets eaten in Chips
Bug 8436028 New code for tokenizing an address stripped the area code from a manually entered phone number. When chips is in "phone number" mode, call a new function (essentially the old function before the change) to create a fake entry directly from the phone number. Cherry-pick of: I2d62ff24aacd8eadb9086840bd4d003cf39db177 Change-Id: I08d98c2e358fc1b8a70bacf358497a511fd71069
Diffstat (limited to 'chips/src/com/android/ex/chips/RecipientEditTextView.java')
-rw-r--r--chips/src/com/android/ex/chips/RecipientEditTextView.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/chips/src/com/android/ex/chips/RecipientEditTextView.java b/chips/src/com/android/ex/chips/RecipientEditTextView.java
index 4347202..a2e037f 100644
--- a/chips/src/com/android/ex/chips/RecipientEditTextView.java
+++ b/chips/src/com/android/ex/chips/RecipientEditTextView.java
@@ -972,7 +972,7 @@ public class RecipientEditTextView extends MultiAutoCompleteTextView implements
return null;
}
if (isPhoneQuery() && isPhoneNumber(token)) {
- return RecipientEntry.constructFakeEntry(token, true);
+ return RecipientEntry.constructFakePhoneEntry(token, true);
}
Rfc822Token[] tokens = Rfc822Tokenizer.tokenize(token);
String display = null;