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

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

Merge "AVRCP: UID_CHANGED response for GetItemAttributes" am: 69394816 am:...

Merge "AVRCP: UID_CHANGED response for GetItemAttributes" am: 69394816 am: c526c9b7 am: ea02934a
am: 0f8c53ce

Change-Id: I4b5d1aaedf9e89056957633c1fbb38a80cf4afa7
parents 38c0a5b9 0f8c53ce
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(