[ADR] TS51.010-1 34.2.9.1 failed to send concatenated segments SMS to short
Xia Ying [Sat, 4 Oct 2014 20:35:40 +0000 (15:35 -0500)]
code

On handling EVENT_SEND_CONFIRMED_SMS, we should updte mExpectMore
based on mPendingTrackerCount.

Bug: 17570854
Change-Id: I9071031e30c724e05e9738dad3b476289dc79afc

src/java/com/android/internal/telephony/SMSDispatcher.java

index d89c363..a4699e6 100644 (file)
@@ -302,6 +302,11 @@ public abstract class SMSDispatcher extends Handler {
             if (tracker.isMultipart()) {
                 sendMultipartSms(tracker);
             } else {
+                if (mPendingTrackerCount > 1) {
+                    tracker.mExpectMore = true;
+                } else {
+                    tracker.mExpectMore = false;
+                }
                 sendSms(tracker);
             }
             mPendingTrackerCount--;