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

Commit 945f1506 authored by Victor Chan's avatar Victor Chan Committed by android-build-merger
Browse files

Set session to active for A2dpMediaBrowserService.

am: 887b4682

Change-Id: I7b3456e157fb0ad9a485687390f4011154e5a9df
parents 60d5b131 887b4682
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();