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

Commit 2ce289dd authored by Hemant Gupta's avatar Hemant Gupta Committed by android-build-merger
Browse files

Merge "MAP: Send message without persisting to avoid duplicate entries."

am: 82b140fb

Change-Id: I7e65f807c29e01331e3896c57ce33188b7d556ce
parents 1e68bd76 82b140fb
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -3176,8 +3176,13 @@ public class BluetoothMapContentObserver {

            Log.d(TAG, "sendMessage to " + msgInfo.phone);

            smsMng.sendMultipartTextMessage(msgInfo.phone, null, parts, sentIntents,
                    deliveryIntents);
            if (parts.size() == 1) {
                smsMng.sendTextMessageWithoutPersisting(msgInfo.phone, null, parts.get(0),
                        sentIntents.get(0), deliveryIntents.get(0));
            } else {
                smsMng.sendMultipartTextMessageWithoutPersisting(msgInfo.phone, null, parts,
                        sentIntents, deliveryIntents);
            }
        }
    }