|
|
@ -172,7 +172,7 @@ public class MmsSendJob extends SendJob {
|
|
|
|
throws UndeliverableMessageException
|
|
|
|
throws UndeliverableMessageException
|
|
|
|
{
|
|
|
|
{
|
|
|
|
SendReq req = new SendReq();
|
|
|
|
SendReq req = new SendReq();
|
|
|
|
String lineNumber = Utils.getMyPhoneNumber(context);
|
|
|
|
String lineNumber = getMyNumber(context);
|
|
|
|
Address destination = message.getRecipient().getAddress();
|
|
|
|
Address destination = message.getRecipient().getAddress();
|
|
|
|
MediaConstraints mediaConstraints = MediaConstraints.getMmsMediaConstraints(message.getSubscriptionId());
|
|
|
|
MediaConstraints mediaConstraints = MediaConstraints.getMmsMediaConstraints(message.getSubscriptionId());
|
|
|
|
List<Attachment> scaledAttachments = scaleAttachments(masterSecret, mediaConstraints, message.getAttachments());
|
|
|
|
List<Attachment> scaledAttachments = scaleAttachments(masterSecret, mediaConstraints, message.getAttachments());
|
|
|
@ -287,4 +287,12 @@ public class MmsSendJob extends SendJob {
|
|
|
|
MessageNotifier.notifyMessageDeliveryFailed(context, recipient, threadId);
|
|
|
|
MessageNotifier.notifyMessageDeliveryFailed(context, recipient, threadId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private String getMyNumber(Context context) throws UndeliverableMessageException {
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
return Utils.getMyPhoneNumber(context);
|
|
|
|
|
|
|
|
} catch (SecurityException e) {
|
|
|
|
|
|
|
|
throw new UndeliverableMessageException(e);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|