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

Commit 8d4a151d authored by Ashwini Munigala's avatar Ashwini Munigala Committed by Nitin Shivpure
Browse files

MAP: Fix MMS pushMessage from OUTBOX to SENT folder

Fix content type value for MMS pushMessage
from MAP to OUTBOX to be successfully SENT over
network and listed in SENT folder.

Change-Id: I068619481355c19716627fef434f1f80bd2c2d23
parent 0156079a
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -902,8 +902,13 @@ public class BluetoothMapContentObserver {
    private void writeMmsDataPart(long handle, MimePart part, int count) throws IOException{
        ContentValues values = new ContentValues();
        values.put("mid", handle);
        if(part.contentType != null)
        if(part.contentType != null){
            //Remove last char if ';' from contentType
            if(part.contentType.charAt(part.contentType.length() - 1) == ';') {
               part.contentType = part.contentType.substring(0,part.contentType.length() -1);
            }
            values.put("ct", part.contentType);
        }
        if(part.contentId != null)
            values.put("cid", part.contentId);
        if(part.contentLocation != null)