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

Commit 4287fa88 authored by Joseph Pirozzo's avatar Joseph Pirozzo
Browse files

AVRCP Controller refresh track data on Interim

Upon receiving an interim track changed event fetch the now playing
track information.  Resolves issues where track changes get out of sync.

Bug: 143954201
Test: connect a phone and change tracks rapidly on phone.
Change-Id: I1e4ce62df6839dd2b9cf40832556a9b2608593e7
parent ac8eabf3
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -3152,11 +3152,10 @@ static void handle_notification_response(tBTA_AV_META_MSG* pmeta_msg,
          break;
        } else {
          uint8_t* p_data = p_rsp->param.track;
          /* Update the UID for current track
           * Attributes will be fetched after the AVRCP procedure
           */
          BE_STREAM_TO_UINT64(p_dev->rc_playing_uid, p_data);
          get_play_status_cmd(p_dev);
          get_element_attribute_cmd(AVRC_MAX_NUM_MEDIA_ATTR_ID, attr_list,
                                    p_dev);
        }
        break;