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

Commit e54ab355 authored by Pavlin Radoslavov's avatar Pavlin Radoslavov
Browse files

Fix the logic for re-generating / updating the AVRCP PlaybackState

Bug: 67582168
Bug: 63151260
Bug: 66029010
Test: Manual with FordFocus carkit
Change-Id: Idc4c4cd42156dba3907b76c5a379ab1da4d1ec7e
(cherry picked from commit 621f28e8)
parent f3eab789
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -855,7 +855,7 @@ public final class Avrcp {
            // As a result of that, if we pause the music, on carkits the
            // Play status indicator will continue to display "Playing"
            // for 3 more seconds which can be confusing.
            if (mAudioManagerIsPlaying
            if ((mAudioManagerIsPlaying && newState.getState() != PlaybackState.STATE_PLAYING)
                    || (controllerState == null && mAudioManager != null
                               && mAudioManager.isMusicActive())) {
                // Use AudioManager playback state if we don't have the state