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

Commit 1d57c87e authored by Matthew Xie's avatar Matthew Xie Committed by Gerrit Code Review
Browse files

Merge "MAP: Fix MMS pushMessage from OUTBOX to SENT folder"

parents 64b2dd69 8d4a151d
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)