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

Commit c0d85be6 authored by Marie Janssen's avatar Marie Janssen Committed by Gerrit Code Review
Browse files

Merge "AVRCP: UID_CHANGED response for GetItemAttributes"

parents c748717c 08f109bd
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2222,6 +2222,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(