summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAjay Panicker <apanicke@google.com>2017-08-07 16:57:34 -0700
committerAjay Panicker <apanicke@google.com>2017-08-07 17:00:02 -0700
commit86859c32964ab3dd66f6085604c3578e1f6b78ff (patch)
tree3fd34196bad23172ba3c92a2f661b242457b342d
parent7a5eadc001e78fea8c862716b638246bd0036b5e (diff)
downloadandroid_packages_apps_Bluetooth-86859c32964ab3dd66f6085604c3578e1f6b78ff.tar.gz
android_packages_apps_Bluetooth-86859c32964ab3dd66f6085604c3578e1f6b78ff.tar.bz2
android_packages_apps_Bluetooth-86859c32964ab3dd66f6085604c3578e1f6b78ff.zip
Allow AVRCP to send playback state when resumed from pause
Bug: 64457876 Test: Pause a song then try resuming it Change-Id: I486882945f6e2707d7eae92cb45d0305eeee6f20
-rw-r--r--src/com/android/bluetooth/avrcp/Avrcp.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/bluetooth/avrcp/Avrcp.java b/src/com/android/bluetooth/avrcp/Avrcp.java
index 8d611141d..1a7c5b1a7 100644
--- a/src/com/android/bluetooth/avrcp/Avrcp.java
+++ b/src/com/android/bluetooth/avrcp/Avrcp.java
@@ -1023,7 +1023,7 @@ public final class Avrcp {
if ((newQueueId == -1 || newQueueId != mLastQueueId)
&& currentAttributes.equals(mMediaAttributes)
&& newPlayStatus == PLAYSTATUS_PLAYING
- && mReportedPlayStatus != PLAYSTATUS_PLAYING) {
+ && mReportedPlayStatus == PLAYSTATUS_STOPPED) {
// Most carkits like seeing the track changed before the
// playback state changed, but some controllers are slow
// to update their metadata. Hold of on sending the playback state