[HFP-PHONEBOOK] Fix duplicate contacts entry in carkit 76/123276/1
authorNagaraj D R <nagaraj.dr@samsung.com>
Wed, 5 Apr 2017 06:17:03 +0000 (11:47 +0530)
committerNagaraj D R <nagaraj.dr@samsung.com>
Wed, 5 Apr 2017 06:17:03 +0000 (11:47 +0530)
[Problem]If carkit uses HFP, for retrieving ME contacts
SIM contacts are also sent wrongly by DUT
[Cause & Measure]For ME case, entire phonebook list
is fetched where only device contact was supposed to be listed.
Now if carkit retrieves SIM contacts then duplicate entries of SIM
contacts will be shown in the carkit

Change-Id: I270f5a28ae62928dff51c426592abc41d28c3a94

pb-agent/bluetooth_pb_agent.c

index ca53343..73b8d61 100644 (file)
@@ -1881,7 +1881,7 @@ static void __bluetooth_pb_get_list_number(PbAgentData *agent,
        DBG("type = %d", pb_type);
        switch (pb_type) {
        case TELECOM_PB:
-               query = __bluetooth_pb_query_person_number();
+               query = __bluetooth_pb_query_person(PBAP_ADDRESSBOOK_PHONE);
                __bluetooth_pb_get_contact_list_number(agent, query,
                                start_index, end_index, builder);
                break;