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

Commit de253eca authored by Sanket Agarwal's avatar Sanket Agarwal Committed by Android (Google) Code Review
Browse files

Merge "Set session to active for A2dpMediaBrowserService."

parents 459802de c1b48cf2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -125,6 +125,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);

        mAdapter = BluetoothAdapter.getDefaultAdapter();