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

Commit 88677daa authored by Pavlin Radoslavov's avatar Pavlin Radoslavov Committed by android-build-merger
Browse files

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

am: cd6ab2ea

Change-Id: Ic556bf448af2e9724588dec4775bd2460fa29347
parents 748284b2 cd6ab2ea
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