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

Commit 887b4682 authored by Victor Chan's avatar Victor Chan Committed by Sanket Agarwal
Browse files

Set session to active for A2dpMediaBrowserService.

Bluetooth Audio playbackstate was not appearing in the overview since the session was inactive.

bug:27859156
Change-Id: I2e454747efe8724daa8c5375b193cf00638aec5d
(cherry picked from commit c1b48cf2)
(cherry picked from commit 519bb218e810383f12182e3fa4b68234339a2861)
parent 4d59223b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -157,6 +157,7 @@ public class A2dpMediaBrowserService extends MediaBrowserService {
        mSession.setCallback(mSessionCallbacks);
        mSession.setFlags(MediaSession.FLAG_HANDLES_MEDIA_BUTTONS |
                MediaSession.FLAG_HANDLES_TRANSPORT_CONTROLS);
        mSession.setActive(true);
        mAvrcpCommandQueue = new AvrcpCommandQueueHandler(Looper.getMainLooper(), this);

        refreshInitialPlayingState();