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

Commit 45793f90 authored by Umashankar Godachi's avatar Umashankar Godachi Committed by Steve Kondik
Browse files

Do not inform user when the alpha identifier is a null data.

Add a condition to distinguish between alpha identifier with
null data and no alpha identifier.

Ref spec: 3GPP TS 11.14, 6.4.5. Play Tone.

Change-Id: Ibfe211653c34206e4326d4b4f234c9dd1e9778f2
CRs-Fixed: 631723
parent 96fae9bd
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -829,6 +829,10 @@ class CommandParamsFactory extends Handler {
        ctlv = searchForTag(ComprehensionTlvTag.ALPHA_ID, ctlvs);
        if (ctlv != null) {
            textMsg.text = ValueParser.retrieveAlphaId(ctlv);
            // Assign the tone message text to empty string, if alpha identifier
            // data is null. If no alpha identifier tlv is present, then tone
            // message text will be null.
            if (textMsg.text == null) textMsg.text = "";
        }
        // parse tone duration
        ctlv = searchForTag(ComprehensionTlvTag.DURATION, ctlvs);