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

Commit c2c16dca authored by Sukanya Rajkhowa's avatar Sukanya Rajkhowa Committed by Linux Build Service Account
Browse files

Send retry SMS over 1x

If MO SMS fails with SMS_FAIL_RETRY and phone's radio tech is CDMA,
 send the subsequent retry sms on 1x if criteria for active 1x
voice call and IMS registration still apply

Change-Id: I797b9218ef013402fae2d01242f1f7b9a02c64f2
CRs-Fixed: 607158
(cherry picked from commit bbc4eeeb49a78a5ce460ee5f32d868f6e29e121e)
parent 5f5b7e9d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -233,6 +233,7 @@ public class ImsSMSDispatcher extends SMSDispatcher {
        if (oldFormat.equals(newFormat)) {
            if (isCdmaFormat(newFormat)) {
                Rlog.d(TAG, "old format matched new format (cdma)");
                shouldSendSmsOverIms();
                mCdmaDispatcher.sendSms(tracker);
                return;
            } else {
@@ -275,6 +276,7 @@ public class ImsSMSDispatcher extends SMSDispatcher {
                Rlog.d(TAG, "old format (gsm) ==> new format (cdma)");
                pdu = com.android.internal.telephony.cdma.SmsMessage.getSubmitPdu(
                        scAddr, destAddr, text, (tracker.mDeliveryIntent != null), null);
                shouldSendSmsOverIms();
            } else {
                Rlog.d(TAG, "old format (cdma) ==> new format (gsm)");
                pdu = com.android.internal.telephony.gsm.SmsMessage.getSubmitPdu(
@@ -290,6 +292,7 @@ public class ImsSMSDispatcher extends SMSDispatcher {
                pdu = com.android.internal.telephony.cdma.SmsMessage.getSubmitPdu(
                            scAddr, destAddr, destPort.intValue(), data,
                            (tracker.mDeliveryIntent != null));
                shouldSendSmsOverIms();
            } else {
                Rlog.d(TAG, "old format (cdma) ==> new format (gsm)");
                pdu = com.android.internal.telephony.gsm.SmsMessage.getSubmitPdu(