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

Commit a8298b68 authored by Marie Janssen's avatar Marie Janssen Committed by android-build-merger
Browse files

Merge "AVRCP: UID_CHANGED response for GetItemAttributes" am: c0d85be6 am: be9f47a9

am: 7c431651

Change-Id: I99cdc97f3fb74cb8e8de3ec952ba65b8d59f16d2
parents d808852f 7c431651
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2225,6 +2225,12 @@ public final class Avrcp {
    }

    private void handleGetItemAttr(AvrcpCmd.ItemAttrCmd itemAttr) {
        if (itemAttr.mUidCounter != sUIDCounter) {
            Log.e(TAG, "handleGetItemAttr: invaild uid counter.");
            getItemAttrRspNative(
                    itemAttr.mAddress, AvrcpConstants.RSP_UID_CHANGED, (byte) 0, null, null);
            return;
        }
        if (itemAttr.mScope == AvrcpConstants.BTRC_SCOPE_NOW_PLAYING) {
            if (mCurrAddrPlayerID == NO_PLAYER_ID) {
                getItemAttrRspNative(