When retrieving MMS, continue on with best-effort in absence of APNs.

pull/1/head
Moxie Marlinspike 13 years ago
parent 5050b43234
commit 47c83d2747

@ -50,14 +50,16 @@ public class MmsDownloadHelper extends MmsCommunication {
}
public static byte[] retrieveMms(Context context, String url, String apn) throws IOException {
MmsConnectionParameters connectionParameters;
try {
MmsConnectionParameters connectionParameters = getMmsConnectionParameters(context, apn);
connectionParameters = getMmsConnectionParameters(context, apn);
} catch (MmsException me) {
Log.w("MmsDownloadHelper", me);
connectionParameters = new MmsConnectionParameters(null, null, null);
}
checkRouteToHost(context, connectionParameters, url);
return makeRequest(connectionParameters, url);
} catch (MmsException me) {
Log.w("MmsDownloader", me);
throw new IOException("Problem configuring MmsConnectionParameters.");
}
}
}

Loading…
Cancel
Save