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

Commit cef5f6aa authored by kai's avatar kai
Browse files

AvrcpControllerSM update PlayerList

Update the PlayerList when we got Track_Changed.

Bug: 67604427
Test: 1 Pair phone with Mojave, play music from Google Play Music
        check the music app name
      2 Streaming music from other Music apps, open drawer check
        music app name

Change-Id: I657fe88f73dd85598a9e51147ff6eed9f151cbdf
(cherry picked from commit 30cd7c70a5ed9059a72a390111cc8719a285df36)
parent 31c98c95
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -423,6 +423,14 @@ class AvrcpControllerStateMachine extends StateMachine {
                        mAddressedPlayer.updateCurrentTrack((TrackInfo) msg.obj);
                        broadcastMetaDataChanged(
                                mAddressedPlayer.getCurrentTrack().getMediaMetaData());

                        //update playerList
                        byte start = (byte) 0b00000000;
                        byte end = (byte) 0b11111111;
                        AvrcpControllerService.getPlayerListNative(
                                mRemoteDevice.getBluetoothAddress(), start, end);
                        transitionTo(mGetPlayerListing);
                        sendMessageDelayed(MESSAGE_INTERNAL_CMD_TIMEOUT, CMD_TIMEOUT_MILLIS);
                        break;

                    case MESSAGE_PROCESS_PLAY_POS_CHANGED: