mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-20 14:54:09 +00:00
Fix for MMS send bug with an APN proxy.
This commit is contained in:
@@ -109,8 +109,10 @@ public class MmsDownloader extends MmscProcessor {
|
||||
} catch (IOException e) {
|
||||
Log.w("MmsDownloader", e);
|
||||
if (!item.useMmsRadioMode() && !item.proxyRequestIfPossible()) {
|
||||
Log.w("MmsDownloader", "Falling back to just radio mode...");
|
||||
scheduleDownloadWithRadioMode(item);
|
||||
} else if (!item.proxyRequestIfPossible()) {
|
||||
Log.w("MmsDownloadeR", "Falling back to radio mode and proxy...");
|
||||
scheduleDownloadWithRadioModeAndProxy(item);
|
||||
} else {
|
||||
DatabaseFactory.getMmsDatabase(context).markDownloadState(item.getMessageId(), MmsDatabase.Types.DOWNLOAD_SOFT_FAILURE);
|
||||
|
@@ -239,13 +239,15 @@ public class MmsSender extends MmscProcessor {
|
||||
}
|
||||
|
||||
private void scheduleSendWithMmsRadioAndProxy(SendItem item) {
|
||||
item.useMmsRadio = true;
|
||||
Log.w("MmsSender", "Falling back to sending MMS with radio and proxy...");
|
||||
item.useMmsRadio = true;
|
||||
item.useProxyIfAvailable = true;
|
||||
handleSendMmsAction(item);
|
||||
}
|
||||
|
||||
private void scheduleSendWithMmsRadio(SendItem item) {
|
||||
item.useMmsRadio = true;
|
||||
item.useProxyIfAvailable = true;
|
||||
Log.w("MmsSender", "Falling back to sending MMS with radio only...");
|
||||
item.useMmsRadio = true;
|
||||
handleSendMmsAction(item);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user