Fix for long multipart message bug on some ROMs.

fork-5.53.8
Moxie Marlinspike 2013-12-03 08:21:31 -08:00
rodzic e0aa7fd359
commit c2b809c7c6
1 zmienionych plików z 10 dodań i 3 usunięć

Wyświetl plik

@ -98,10 +98,17 @@ public class SmsTransport {
Log.w("SmsTransport", npe);
Log.w("SmsTransport", "Recipient: " + recipient);
Log.w("SmsTransport", "Message Parts: " + messages.size());
for (String messagePart: messages) {
Log.w("SmsTransport", "Message Part Length: " + messagePart.getBytes().length);
try {
for (int i=0;i<messages.size();i++) {
SmsManager.getDefault().sendTextMessage(recipient, null, messages.get(i),
sentIntents.get(i),
deliveredIntents == null ? null : deliveredIntents.get(i));
}
} catch (NullPointerException npe2) {
Log.w("SmsTransport", npe);
throw new UndeliverableMessageException(npe2);
}
throw new UndeliverableMessageException(npe);
}
}