Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5ab51399 authored by Qiang Chen's avatar Qiang Chen Committed by Gerrit - the friendly Code Review server
Browse files

Disable the plus sign conversion in non-NANP system

Support NANP international conversion and other telephone numbering plans.
Return the original dial string if the phone is used in non-NANP system.

CRs-Fixed: 791454

Change-Id: I10d2822d0406021e6f631e722e812ad714074995
parent 8f2f1868
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2265,8 +2265,9 @@ public class PhoneNumberUtils
                if (useNanp) {
                    networkDialStr = extractNetworkPortion(tempDialStr);
                } else  {
                    networkDialStr = extractNetworkPortionAlt(tempDialStr);

                    Rlog.e("cdmaCheckAndProcessPlusCodeByNumberFormat:non-NANP not supported",
                            dialStr);
                    return dialStr;
                }

                networkDialStr = processPlusCode(networkDialStr, useNanp);