From d2c4103e007f646d3c54840d150a25b49b5f7de7 Mon Sep 17 00:00:00 2001 From: Iris Chang Date: Thu, 19 Mar 2020 15:58:20 +0800 Subject: [PATCH] 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 --- telephony/common/com/google/android/mms/pdu/PduComposer.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/telephony/common/com/google/android/mms/pdu/PduComposer.java b/telephony/common/com/google/android/mms/pdu/PduComposer.java index b8b212c493aa5..5e1f556f4c4aa 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; }