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

Commit a423a279 authored by sohryun.shin's avatar sohryun.shin
Browse files

Add + code handling logic for SMS Global Roaming

When sending SMS from international CDMA NANP country, outgoing SMS is failed due to + code converting.
(Send a SMS text message: to an international phone number using the plus code (+)).

In kitkat, when user send a sms with plus code, the "+" converted to 011(NANP_IDP_STRING). And it works well.
However, in lollipop, the "+" converted to current IDP, not NANP_IDP_STRING. And it failed to send the SMS.

I think, we need to seperate SMS and Call logic like cdmaCheckAndProcessPlusCodeForSms and cdmaCheckAndProcessPlusCode.
sohryun.shin@lge.com

Change-Id: Ie9d402cbeb4de4ac30299d5820b33909d0e40320
parent 7f94b52f
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -2285,9 +2285,13 @@ public class PhoneNumberUtils
    }

    private static String getCurrentIdp(boolean useNanp) {
        String ps = null;
        if(useNanp)
            ps = NANP_IDP_STRING;
        else{
            // in case, there is no IDD is found, we shouldn't convert it.
        String ps = SystemProperties.get(
                PROPERTY_OPERATOR_IDP_STRING, useNanp ? NANP_IDP_STRING : PLUS_SIGN_STRING);
            ps = SystemProperties.get(PROPERTY_OPERATOR_IDP_STRING, PLUS_SIGN_STRING);                
        }
        return ps;
    }