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

Commit ef1e80c4 authored by Adrian Roos's avatar Adrian Roos Committed by Android (Google) Code Review
Browse files

Merge "Revert "AML: Use MediaSessionManager.createSession() which is @SystemApi""

parents 04228920 459376a4
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -179,7 +179,9 @@ public final class MediaSession {
        MediaSessionManager manager = (MediaSessionManager) context
                .getSystemService(Context.MEDIA_SESSION_SERVICE);
        try {
            mBinder = manager.createSession(mCbStub, tag, userId);
            //TODO(b/119749862): Resolve hidden API usage. MediaSessioManager#createSession
            //mBinder = manager.createSession(mCbStub, tag, userId);
            mBinder = null;  //TODO: remove this.
            mSessionToken = new Token(mBinder.getController());
            mController = new MediaController(context, mSessionToken);
        } catch (RemoteException e) {