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

Commit 71884637 authored by Sravan voleti's avatar Sravan voleti
Browse files

PBAP: Add NewMissedCall parameter when folder is MCH.

Precondition:
1) PBAP connection exists between Phone and IOT device.
2) There is a new missed(1) call in call history on the phone.

Use case:
Do a PullvCardListing with the application parameter
MaxListCount = 0 and select the missed call list (mch).

Fix:
Add NewMissedCall value in application parameter if
get pb/list with MaxListCount=0 and folder=mch.

Bug: 130769737
Test: Performed above use case, able to view NewMissedCall value
in application parameter.
Change-Id: I28503ebf5fecb26654d991f2e8ae6dac1e15144d
parent 1a8d5b5a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -986,6 +986,8 @@ public class BluetoothPbapObexServer extends ServerRequestHandler {

                nmnum = nmnum > 0 ? nmnum : 0;
                misnum[0] = (byte) nmnum;
                ap.addAPPHeader(ApplicationParameter.TRIPLET_TAGID.NEWMISSEDCALLS_TAGID,
                        ApplicationParameter.TRIPLET_LENGTH.NEWMISSEDCALLS_LENGTH, misnum);
                if (D) {
                    Log.d(TAG, "handleAppParaForResponse(): mNeedNewMissedCallsNum=true,  num= "
                            + nmnum);