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

Commit 7c0f4b97 authored by Ye Wen's avatar Ye Wen
Browse files

Fix PDU part ordering in PduParser

Nova does not send SMIL. When sending multiple images, the second image
part and so on would match content-type "type" param and being inserted
in reverse order (PduParser.checkPartPosition). This change makes sure
if "start" param does not match part's content id, the part will be
appended to the list and shortcut the "type" check.

b/19607294

Change-Id: Idfebd0cac35b637e4d6d6513d5dc6170d7262ff1
parent 957caf97
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1774,6 +1774,9 @@ public class PduParser {
                    return THE_FIRST_PART;
                }
            }
            // This is not the first part, so append to end (keeping the original order)
            // Check b/19607294 for details of this change
            return THE_LAST_PART;
        }

        /* check part's content-type */