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

Commit 0c829e2b authored by Smriti Gupta's avatar Smriti Gupta
Browse files

PBAP: Remove body header when it is not needed

This change will remove the body header when
the user is asking for the size and not the body.

Change-Id: I8de1a9db0ac64dac3e0d0cf680814ef200fa11a0
CRs-Fixed: 554222
parent 89a8b112
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -868,6 +868,7 @@ public class BluetoothPbapObexServer extends ServerRequestHandler {
        int size = mVcardManager.getPhonebookSize(appParamValue.needTag);
        int needSendBody = handleAppParaForResponse(appParamValue, size, reply, op);
        if (needSendBody != NEED_SEND_BODY) {
            op.noBodyHeader();
            op.noEndofBody();
            return needSendBody;
        }
@@ -990,6 +991,7 @@ public class BluetoothPbapObexServer extends ServerRequestHandler {
        int pbSize = mVcardManager.getPhonebookSize(appParamValue.needTag);
        int needSendBody = handleAppParaForResponse(appParamValue, pbSize, reply, op);
        if (needSendBody != NEED_SEND_BODY) {
            op.noBodyHeader();
            op.noEndofBody();
            return needSendBody;
        }