Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e587a8ef authored by Taesu Lee's avatar Taesu Lee
Browse files

Remove a tracker from the map in ImsSmsDispatcher if no need anymore



If a status report is not requested, remove a tracker from the map when
sending is done successfully.

Test: Manual

Change-Id: I5815e39eef0ecfc84cf2002213065b0500eb461f
Signed-off-by: default avatarTaesu Lee <taesu82.lee@samsung.com>
parent e492bd80
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -124,6 +124,10 @@ public class ImsSmsDispatcher extends SMSDispatcher {
            tracker.mMessageRef = messageRef;
            switch(status) {
                case ImsSmsImplBase.SEND_STATUS_OK:
                    if (tracker.mDeliveryIntent == null) {
                        // Remove the tracker here if a status report is not requested.
                        mTrackers.remove(token);
                    }
                    tracker.onSent(mContext);
                    mPhone.notifySmsSent(tracker.mDestAddress);
                    break;