summaryrefslogtreecommitdiff
path: root/src/com/android/mms/transaction/RetrieveTransaction.java
diff options
context:
space:
mode:
authorYe Wen <ywen@google.com>2014-11-19 00:09:13 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-11-19 00:09:13 +0000
commit9fcdc6e0b930e32bcef65c811b30d01dfb7d41d9 (patch)
tree2b5cb89f11dc224b847fa5b14a96f5a675ca2c43 /src/com/android/mms/transaction/RetrieveTransaction.java
parent7dae0e1eeb4ff15ba44bd6ae293f57e1449fe0db (diff)
parent178eb8396bd0cc972542798b79218cdf32af4b35 (diff)
downloadMms-9fcdc6e0b930e32bcef65c811b30d01dfb7d41d9.tar.gz
am 178eb839: PduParser MSIM support (3/4)
* commit '178eb8396bd0cc972542798b79218cdf32af4b35': PduParser MSIM support (3/4)
Diffstat (limited to 'src/com/android/mms/transaction/RetrieveTransaction.java')
-rw-r--r--src/com/android/mms/transaction/RetrieveTransaction.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/com/android/mms/transaction/RetrieveTransaction.java b/src/com/android/mms/transaction/RetrieveTransaction.java
index 7277d499..74adc024 100644
--- a/src/com/android/mms/transaction/RetrieveTransaction.java
+++ b/src/com/android/mms/transaction/RetrieveTransaction.java
@@ -17,8 +17,6 @@
package com.android.mms.transaction;
-import java.io.IOException;
-
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
@@ -45,6 +43,8 @@ import com.google.android.mms.pdu.PduParser;
import com.google.android.mms.pdu.PduPersister;
import com.google.android.mms.pdu.RetrieveConf;
+import java.io.IOException;
+
/**
* The RetrieveTransaction is responsible for retrieving multimedia
* messages (M-Retrieve.conf) from the MMSC server. It:
@@ -137,7 +137,8 @@ public class RetrieveTransaction extends Transaction implements Runnable {
byte[] resp = getPdu(mContentLocation);
// Parse M-Retrieve.conf
- RetrieveConf retrieveConf = (RetrieveConf) new PduParser(resp).parse();
+ RetrieveConf retrieveConf = (RetrieveConf) new PduParser(
+ resp, PduParserUtil.shouldParseContentDisposition()).parse();
if (null == retrieveConf) {
throw new MmsException("Invalid M-Retrieve.conf PDU.");
}