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

Commit 8dfb7fcb authored by kschulz's avatar kschulz Committed by Andre Eisenbach
Browse files

MAP: Errata service release 8 changes



- Exclude folderListingSize for requests MaxListCount != 0
- Exclude body-header for MaxListCount == 0
- Removing 'old_folder' from delete message event and place folder from
  which message has been delete in 'folder' attribute

Signed-off-by: default avatarCasper Bonde <c.bonde@samsung.com>
Signed-off-by: default avatarTrine Jensen <trine.jensen@samsung.com>
Change-Id: I5bf6d50e0a078bb8a9d261d81efd4a9272bcb226
parent d08e64e3
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1290,10 +1290,13 @@ public class BluetoothMapObexServer extends ServerRequestHandler {
            {
                outBytes = mCurrentFolder.encode(listStartOffset, maxListCount);
                outStream = op.openOutputStream();
            } else {
                // ESR08 specified that this shall only be included for MaxListCount=0
                outAppParams.setFolderListingSize(mCurrentFolder.getSubFolderCount());
                op.noBodyHeader();
            }

            // Build and set the application parameter header
            outAppParams.setFolderListingSize(mCurrentFolder.getSubFolderCount());
            replyHeaders.setHeader(HeaderSet.APPLICATION_PARAMETER, outAppParams.EncodeParams());
            op.sendHeaders(replyHeaders);