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

Commit 7c431651 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

Change-Id: I1a1e3933673c9c35d687f7731edce0ab338d9f6a
parents ac03bb4d be9f47a9
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(