Merge "Preserve '+' in phone numbers imported from SIM."

This commit is contained in:
Jean-Baptiste Queru
2010-05-13 11:06:28 -07:00
committed by Android Code Review
2 changed files with 12 additions and 1 deletions

View File

@@ -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;
}