|
|
|
|
@ -77,14 +77,18 @@ public class MmsDownloadJob extends MasterSecretJob {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
database.markDownloadState(messageId, MmsDatabase.Status.DOWNLOAD_CONNECTING);
|
|
|
|
|
try {
|
|
|
|
|
if (notification.get().getContentLocation() == null) {
|
|
|
|
|
throw new MmsException("Notification content location was null.");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String contentLocation = new String(notification.get().getContentLocation());
|
|
|
|
|
byte[] transactionId = notification.get().getTransactionId();
|
|
|
|
|
database.markDownloadState(messageId, MmsDatabase.Status.DOWNLOAD_CONNECTING);
|
|
|
|
|
|
|
|
|
|
Log.w(TAG, "Downloading mms at " + Uri.parse(contentLocation).getHost());
|
|
|
|
|
String contentLocation = new String(notification.get().getContentLocation());
|
|
|
|
|
byte[] transactionId = notification.get().getTransactionId();
|
|
|
|
|
|
|
|
|
|
Log.w(TAG, "Downloading mms at " + Uri.parse(contentLocation).getHost());
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
RetrieveConf retrieveConf = getMmsConnection(context).retrieve(contentLocation, transactionId);
|
|
|
|
|
if (retrieveConf == null) {
|
|
|
|
|
throw new MmsException("RetrieveConf was null");
|
|
|
|
|
|