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

Commit 18df76ac authored by Avinash Nalluri's avatar Avinash Nalluri
Browse files

SMS support for 5G SA

  --Allow SMS for PS only NR network.

Bug: 139963215
parent f7ec7caa
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -185,9 +185,13 @@ public final class GsmSMSDispatcher extends SMSDispatcher {

        // if sms over IMS is not supported on data and voice is not available...
        if (!isIms() && ss != ServiceState.STATE_IN_SERVICE) {
        //In 5G case only Data Rat is reported.
            if(mPhone.getServiceState().getRilDataRadioTechnology()
                    != ServiceState.RIL_RADIO_TECHNOLOGY_NR) {
                tracker.onFailed(mContext, getNotInServiceError(ss), NO_ERROR_CODE);
                return;
            }
        }

        Message reply = obtainMessage(EVENT_SEND_SMS_COMPLETE, tracker);
        HashMap<String, Object> map = tracker.getData();