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

Commit bb8277c9 authored by Alex Yakavenka's avatar Alex Yakavenka Committed by Rika Brooks
Browse files

Telephony: Don't ack CB messages

SmsDispatcher receives its own broadcast to ack messages.
CB message needs to be excluded from the acking code since
it should not be acked.

Change-Id: I3f1496bb0c81a8edcc4173661e2ca75b03a9c6fb
parent 801aa9f3
Loading
Loading
Loading
Loading
+14 −9
Original line number Diff line number Diff line
@@ -1224,6 +1224,10 @@ public abstract class SMSDispatcher extends Handler {
    private final BroadcastReceiver mResultReceiver = new BroadcastReceiver() {
        @Override
        public void onReceive(Context context, Intent intent) {
            if (intent.getAction().equals(Intents.SMS_CB_RECEIVED_ACTION) ||
                    intent.getAction().equals(Intents.SMS_EMERGENCY_CB_RECEIVED_ACTION)) {
                // Ignore this intent. Apps will process it.
            } else {
                // Assume the intent is one of the SMS receive intents that
                // was sent as an ordered broadcast. Check result and ACK.
                int rc = getResultCode();
@@ -1234,6 +1238,7 @@ public abstract class SMSDispatcher extends Handler {
                // Previous parts were ACK'd as they were received.
                acknowledgeLastIncomingSms(success, rc, null);
            }
        }
    };

    protected void dispatchBroadcastMessage(SmsCbMessage message) {