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

Commit 09592ac7 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Bluetooth: MAP: Do not set body header if maxlist count is 0"

parents 15cd3081 61329c64
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -611,7 +611,9 @@ public class BluetoothMapObexServer extends ServerRequestHandler {
                  hasUnread = mOutContent.msgListingHasUnreadEmail(folderName, appParams);
                }
                outAppParams.setMessageListingSize(listSize);
                Log.d(TAG, "not setting body and end of body header");
                op.noBodyHeader();
                op.noEndofBody();
            }

            // Build the application parameter header
@@ -744,10 +746,12 @@ public class BluetoothMapObexServer extends ServerRequestHandler {
                    }
                }

            if(maxListCount != 0)
            {
            if(maxListCount != 0) {
                outBytes = mCurrentFolder.encode(listStartOffset, maxListCount);
                outStream = op.openOutputStream();
            } else {
                op.noBodyHeader();
                op.noEndofBody();
            }

            // Build and set the application parameter header