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

Commit 8618168b 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:...

Merge "AVRCP: UID_CHANGED response for GetItemAttributes" am: c0d85be6 am: be9f47a9 am: 7c431651
am: a8298b68

Change-Id: I4b5d1aaedf9e89056957633c1fbb38a80cf4afa7
parents 65213f81 a8298b68
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(