Actually fallback to manual MMS receiving when system fails

Should resolve #6668 for tmobile users on older lollipop phones
// FREEBIE
This commit is contained in:
Moxie Marlinspike 2017-05-23 18:23:47 -07:00
parent 15df691017
commit 782bd6003b

View File

@ -67,7 +67,11 @@ public class CompatMmsConnection implements OutgoingMmsConnection, IncomingMmsCo
{ {
if (VERSION.SDK_INT >= VERSION_CODES.LOLLIPOP) { if (VERSION.SDK_INT >= VERSION_CODES.LOLLIPOP) {
Log.w(TAG, "Receiving via Lollipop API"); Log.w(TAG, "Receiving via Lollipop API");
return new IncomingLollipopMmsConnection(context).retrieve(contentLocation, transactionId, subscriptionId); try {
return new IncomingLollipopMmsConnection(context).retrieve(contentLocation, transactionId, subscriptionId);
} catch (MmsException e) {
Log.w(TAG, e);
}
} }
if (subscriptionId == -1) { if (subscriptionId == -1) {