diff options
author | Samuel Holmberg <samuel.holmberg@sonyericsson.com> | 2010-02-24 12:15:15 +0100 |
---|---|---|
committer | Jean-Baptiste Queru <jbq@google.com> | 2010-05-11 15:21:43 -0700 |
commit | ce2a97aeb82d3f34a63472720ee9d53e53c248c2 (patch) | |
tree | 9824fe4719066f6163749fb6c05af976639a5e79 /telephony | |
parent | 26abeae75baa471fa7c8d686083c2f12f3246968 (diff) | |
download | frameworks_base-ce2a97aeb82d3f34a63472720ee9d53e53c248c2.zip frameworks_base-ce2a97aeb82d3f34a63472720ee9d53e53c248c2.tar.gz frameworks_base-ce2a97aeb82d3f34a63472720ee9d53e53c248c2.tar.bz2 |
Preserve '+' in phone numbers imported from SIM.
Contacts with phonenumbers beginning with '+' lose the '+' in the
phonebook when imported from SIM.
This was only noticable on ADN-records with unknown NPI-values which
isn't very usual.
Change-Id: I181249759ae3d4181dd3cf627c7a588394b80419
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; } |