diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2010-05-13 11:06:28 -0700 |
---|---|---|
committer | Android Code Review <code-review@android.com> | 2010-05-13 11:06:28 -0700 |
commit | ecfb185eedecde3895b1340dfdb12b65bb72c32c (patch) | |
tree | 7d3a698a8b043a85def26af5a8063b13204b0cdc /telephony | |
parent | f3ca9a5c7e87319c934b5815566054d2e5c2085f (diff) | |
parent | ce2a97aeb82d3f34a63472720ee9d53e53c248c2 (diff) | |
download | frameworks_base-ecfb185eedecde3895b1340dfdb12b65bb72c32c.zip frameworks_base-ecfb185eedecde3895b1340dfdb12b65bb72c32c.tar.gz frameworks_base-ecfb185eedecde3895b1340dfdb12b65bb72c32c.tar.bz2 |
Merge "Preserve '+' in phone numbers imported from SIM."
Diffstat (limited to 'telephony')
-rw-r--r-- | telephony/java/android/telephony/PhoneNumberUtils.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/telephony/java/android/telephony/PhoneNumberUtils.java b/telephony/java/android/telephony/PhoneNumberUtils.java index 1aa1c76..3f08676 100644 --- a/telephony/java/android/telephony/PhoneNumberUtils.java +++ b/telephony/java/android/telephony/PhoneNumberUtils.java @@ -689,7 +689,8 @@ public class PhoneNumberUtils return ""; } - if ((bytes[offset] & 0xff) == TOA_International) { + //Only TON field should be taken in concideration + if ((bytes[offset] & 0xf0) == (TOA_International & 0xf0)) { prependPlus = true; } |