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

Commit 6ed9a419 authored by Aishwarya Mallampati's avatar Aishwarya Mallampati
Browse files

Block SMS in satellite mode if P2P SMS is not supported

Bug: 392981300
Test: 392980302
Flag: EXEMPT bugfix
Change-Id: I7ecdf0d4ea9776be6147d75255da4c58d1c575dc
parent c09c6328
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -1879,6 +1879,11 @@ public class SmsDispatchersController extends Handler {
            // Send P2P SMS using carrier roaming NB IOT NTN
            DatagramDispatcher.getInstance().sendSms(pendingRequest);
            return;
        } else if (SatelliteController.getInstance().isInCarrierRoamingNbIotNtn()) {
            Rlog.d(TAG, "Block SMS in carrier roaming NB IOT NTN mode.");
            // Block SMS in satellite mode if P2P SMS is not supported.
            triggerSentIntentForFailure(pendingRequest.sentIntents);
            return;
        }

        sendTextInternal(pendingRequest);
@@ -2043,6 +2048,11 @@ public class SmsDispatchersController extends Handler {
            // Send multipart P2P SMS using carrier roaming NB IOT NTN
            DatagramDispatcher.getInstance().sendSms(pendingRequest);
            return;
        } else if (SatelliteController.getInstance().isInCarrierRoamingNbIotNtn()) {
            Rlog.d(TAG, "Block SMS in carrier roaming NB IOT NTN mode.");
            // Block SMS in satellite mode if P2P SMS is not supported.
            triggerSentIntentForFailure(pendingRequest.sentIntents);
            return;
        }

        sendMultipartTextInternal(pendingRequest);