diff options
| author | 2010-10-04 13:21:23 +0200 | |
|---|---|---|
| committer | 2012-02-16 11:17:39 +0100 | |
| commit | 54c3ce2f14b8aa8559150b75f85c89a17dfaeba8 (patch) | |
| tree | 733a5c08d5a88eca07aff6c10bf6285951da31d6 | |
| parent | 472512f6970fa170e2e1a3e1c24ac2b742e2e6b6 (diff) | |
Return error code when composing PDU fails
When the PduComposer fails to make the message body,
a successful result code was still returned.
Change-Id: I8a677afeeae8811c3b0fae61209c5348df1e39d9
| -rw-r--r-- | core/java/com/google/android/mms/pdu/PduComposer.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/java/com/google/android/mms/pdu/PduComposer.java b/core/java/com/google/android/mms/pdu/PduComposer.java index 8940945a605a..d426f89bcb6c 100644 --- a/core/java/com/google/android/mms/pdu/PduComposer.java +++ b/core/java/com/google/android/mms/pdu/PduComposer.java @@ -835,9 +835,7 @@ public class PduComposer { appendOctet(PduHeaders.CONTENT_TYPE); // Message body - makeMessageBody(); - - return PDU_COMPOSE_SUCCESS; // Composing the message is OK + return makeMessageBody(); } /** |