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

Commit ab900359 authored by Amit Mahajan's avatar Amit Mahajan Committed by android-build-merger
Browse files

Merge "Set mOriginatingAddress and mRecipientAddress separately"

am: 44ea78d8

Change-Id: Ieb3e2b98cc61fef472fe471ae05bf9db7a9b66ed
parents 70ad27cf 44ea78d8
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -96,6 +96,12 @@ public final class SmsEnvelope {
     */
    public CdmaSmsSubaddress origSubaddress;

    /**
     * The destination subaddress identifies the target of the SMS message.
     * (See 3GPP2 C.S0015-B, v2, 3.4.3.4)
     */
    public CdmaSmsSubaddress destSubaddress;

    /**
     * The 6-bit bearer reply parameter is used to request the return of a
     * SMS Acknowledge Message.
+12 −9
Original line number Diff line number Diff line
@@ -615,10 +615,11 @@ public class SmsMessage extends SmsMessageBase {
                        }
                        addr.origBytes = data;
                        Rlog.pii(LOG_TAG, "Addr=" + addr.toString());
                        if (parameterId == ORIGINATING_ADDRESS) {
                            env.origAddress = addr;
                            mOriginatingAddress = addr;
                        if (parameterId == DESTINATION_ADDRESS) {
                            // Original address awlays indicates one sender's address for 3GPP2
                            // Here add recipient address support along with 3GPP
                        } else {
                            env.destAddress = addr;
                            mRecipientAddress = addr;
                        }
                        break;
@@ -636,6 +637,11 @@ public class SmsMessage extends SmsMessageBase {
                            subdata[index] = convertDtmfToAscii(b);
                        }
                        subAddr.origBytes = subdata;
                        if (parameterId == ORIGINATING_SUB_ADDRESS) {
                            env.origSubaddress = subAddr;
                        } else {
                            env.destSubaddress = subAddr;
                        }
                        break;
                    case BEARER_REPLY_OPTION:
                        dis.read(parameterData, 0, parameterLen);
@@ -665,9 +671,6 @@ public class SmsMessage extends SmsMessageBase {
        }

        // link the filled objects to this SMS
        mOriginatingAddress = addr;
        env.origAddress = addr;
        env.origSubaddress = subAddr;
        mEnvelope = env;
        mPdu = pdu;

@@ -706,12 +709,12 @@ public class SmsMessage extends SmsMessageBase {

        if (mOriginatingAddress != null) {
            decodeSmsDisplayAddress(mOriginatingAddress);
            if (VDBG) Rlog.v(LOG_TAG, "SMS originating address: "
                    + mOriginatingAddress.address);
            if (VDBG) Rlog.v(LOG_TAG, "SMS originating address: " + mOriginatingAddress.address);
        }

        if (mRecipientAddress != null) {
            decodeSmsDisplayAddress(mRecipientAddress);
            if (VDBG) Rlog.v(LOG_TAG, "SMS destination address: " + mRecipientAddress.address);
        }

        if (mBearerData.msgCenterTimeStamp != null) {