Check CONFIG_SEND_MULTIPART_SMS_AS_SEPARATE_MESSAGES always am: f3ea99181b am: 638c7a6817 am: 2f60034413 am: 8a2358c4d5

Original change: https://android-review.googlesource.com/c/platform/packages/apps/Messaging/+/1325631

Change-Id: I745a7b56e0acb9fcb9a1f68dd977253dc3e62f7a
This commit is contained in:
Taesu Lee
2020-06-08 18:01:21 +00:00
committed by Automerger Merge Worker
+1 -8
View File
@@ -64,9 +64,6 @@ public class SmsSender {
private static final Random RANDOM = new Random(); private static final Random RANDOM = new Random();
// Whether we should send multipart SMS as separate messages
private static Boolean sSendMultipartSmsAsSeparateMessages = null;
/** /**
* Class that holds the sent status for all parts of a multipart message sending * Class that holds the sent status for all parts of a multipart message sending
*/ */
@@ -281,12 +278,8 @@ public class SmsSender {
messageUri, partId, subId), messageUri, partId, subId),
0/*flag*/)); 0/*flag*/));
} }
if (sSendMultipartSmsAsSeparateMessages == null) {
sSendMultipartSmsAsSeparateMessages = MmsConfig.get(subId)
.getSendMultipartSmsAsSeparateMessages();
}
try { try {
if (sSendMultipartSmsAsSeparateMessages) { if (MmsConfig.get(subId).getSendMultipartSmsAsSeparateMessages()) {
// If multipart sms is not supported, send them as separate messages // If multipart sms is not supported, send them as separate messages
for (int i = 0; i < messageCount; i++) { for (int i = 0; i < messageCount; i++) {
smsManager.sendTextMessage(dest, smsManager.sendTextMessage(dest,