diff options
| author | 2010-06-14 10:57:53 -0700 | |
|---|---|---|
| committer | 2010-06-14 10:57:53 -0700 | |
| commit | ea1647aff1e5a2b132673fbbba0a1e443b22f9d3 (patch) | |
| tree | a5fa8cfd1bc6d8fe08ae07ab2353bef6255bf0e5 | |
| parent | 6eb9479134eee7dfdf7d7f18e3b43d02f9375203 (diff) | |
| parent | 14f1eb57db8c2b541a7e110cbf5a4eaf9cacc6b3 (diff) | |
merge from open-source master
Change-Id: I5d19eb677dcfc7b73919d659fafb29fb85dc7f47
| -rw-r--r-- | core/java/com/google/android/mms/pdu/PduParser.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/java/com/google/android/mms/pdu/PduParser.java b/core/java/com/google/android/mms/pdu/PduParser.java index 1cd118b56ac6..92d5cc42db6e 100644 --- a/core/java/com/google/android/mms/pdu/PduParser.java +++ b/core/java/com/google/android/mms/pdu/PduParser.java @@ -161,6 +161,13 @@ public class PduParser { // The MMS content type must be "application/vnd.wap.multipart.mixed" // or "application/vnd.wap.multipart.related" return retrieveConf; + } else if (ctTypeStr.equals(ContentType.MULTIPART_ALTERNATIVE)) { + // "application/vnd.wap.multipart.alternative" + // should take only the first part. + PduPart firstPart = mBody.getPart(0); + mBody.removeAll(); + mBody.addPart(0, firstPart); + return retrieveConf; } return null; case PduHeaders.MESSAGE_TYPE_DELIVERY_IND: |