OSDN Git Service

AVRCP play status change updates
authorJoseph Pirozzo <pirozzoj@google.com>
Wed, 28 Mar 2018 22:27:31 +0000 (15:27 -0700)
committerJoseph Pirozzo <pirozzoj@google.com>
Fri, 30 Mar 2018 21:05:59 +0000 (14:05 -0700)
Process play status updates when seeking forward and backward.

Bug: 67568875
Test: seek forward and backward on paired phone and observe updates.
Change-Id: Id280f0e877cfea0a0da7603ab6d7bcfaf667d482
(cherry picked from commit 201790818da5b2d5df9120e53be19bbe136b2b1a)

btif/src/btif_rc.cc

index f4e1c9c..6dd168b 100644 (file)
@@ -3192,7 +3192,9 @@ static void handle_notification_response(tBTA_AV_META_MSG* pmeta_msg,
         /* Start timer to get play status periodically
          * if the play state is playing.
          */
-        if (p_rsp->param.play_status == AVRC_PLAYSTATE_PLAYING) {
+        if (p_rsp->param.play_status == AVRC_PLAYSTATE_PLAYING ||
+            p_rsp->param.play_status == AVRC_PLAYSTATE_REV_SEEK ||
+            p_rsp->param.play_status == AVRC_PLAYSTATE_FWD_SEEK) {
           rc_start_play_status_timer(p_dev);
         }
         HAL_CBACK(bt_rc_ctrl_callbacks, play_status_changed_cb, &rc_addr,