diff options
author | Iris Chang <iris.chang@mediatek.com> | 2020-03-19 15:58:20 +0800 |
---|---|---|
committer | Iris Chang <iris.chang@mediatek.com> | 2020-03-20 07:31:41 +0000 |
commit | d2c4103e007f646d3c54840d150a25b49b5f7de7 (patch) | |
tree | be0ebc92d69375c92822111865beca606121f437 /telephony/common/com | |
parent | 1859e648d618820a8f4debefd2b24facee520455 (diff) |
Let application set reply MMS delivery report on or off
Some MMS applications have a settings option to allow user to set
reply MMS delivery to on or off. To support this, application will
set REPORT_ALLOWED into NofiyResp.
PduComposer.makeNofiyResp needs to be added REPORT_ALLOWED to make
application setting work.
Test: Set REPORT_ALLOWED in NotifyResp by application. It should be
contained in MMS PDU.
Bug: 143447617
Change-Id: I0ff4a875596efa2fd45f9e20bab880949651faac
Diffstat (limited to 'telephony/common/com')
-rw-r--r-- | telephony/common/com/google/android/mms/pdu/PduComposer.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/telephony/common/com/google/android/mms/pdu/PduComposer.java b/telephony/common/com/google/android/mms/pdu/PduComposer.java index b8b212c493aa..5e1f556f4c4a 100644 --- a/telephony/common/com/google/android/mms/pdu/PduComposer.java +++ b/telephony/common/com/google/android/mms/pdu/PduComposer.java @@ -745,7 +745,9 @@ public class PduComposer { return PDU_COMPOSE_CONTENT_ERROR; } - // X-Mms-Report-Allowed Optional (not support) + // X-Mms-Report-Allowed Optional + appendHeader(PduHeaders.REPORT_ALLOWED); + return PDU_COMPOSE_SUCCESS; } |