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

Commit 93f73b88 authored by Pradeep Panigrahi's avatar Pradeep Panigrahi
Browse files

Fetch proper Originator/Recipient name from application parameter

Add change to fetch actual string provided in application parameter
OBEX header for originator/Recipient name. If proper taglength is
not provided to fetch the string value, then junk characters will be
appended at the end of string, which will not allow us to filter
the messages based on originator/recipient name.

Change-Id: I387a4763fcd8dfbb71de07f80f5e19d90e0db5f1
CRs-fixed: 582947
parent 51f081eb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -209,10 +209,10 @@ public class BluetoothMapAppParams {
                setFilterReadStatus(appParams[i] & 0x03); // Lower two bits
                break;
            case FILTER_RECIPIENT:
                setFilterRecipient(new String(appParams, i, tagLength));
                setFilterRecipient(new String(appParams, i, tagLength - 1));
                break;
            case FILTER_ORIGINATOR:
                setFilterOriginator(new String(appParams, i, tagLength));
                setFilterOriginator(new String(appParams, i, tagLength - 1));
                break;
            case FILTER_PRIORITY:
                if (tagLength != FILTER_PRIORITY_LEN) {