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

Commit 902417b1 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Merge cherrypicks of [2536150, 2536126, 2536127, 2536128, 2536130, 2536131,...

Merge cherrypicks of [2536150, 2536126, 2536127, 2536128, 2536130, 2536131, 2536273, 2536255, 2536274, 2536256, 2536257] into oc-dr1-release

Change-Id: Iad60a0231813bc1186e2241cbef365012fffb5ce
parents ed231fb8 a04a02da
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -1552,8 +1552,15 @@ public final class Avrcp {
        // checking for error cases
        if (mMediaPlayerInfoList.isEmpty()) {
            status = AvrcpConstants.RSP_NO_AVBL_PLAY;
            Log.w(TAG, " No Available Players to set, sending response back ");
            Log.w(TAG, "setBrowsedPlayer: No available players! ");
        } else {
            // Workaround for broken controllers selecting ID 0
            // Seen at least on Ford, Chevrolet MyLink
            if (selectedId == 0) {
                Log.w(TAG, "setBrowsedPlayer: workaround invalid id 0");
                selectedId = mCurrAddrPlayerID;
            }

            // update current browse player id and start browsing service
            updateNewIds(mCurrAddrPlayerID, selectedId);
            String browsedPackage = getPackageName(selectedId);