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

Commit b079c02b authored by Hyundo Moon's avatar Hyundo Moon Committed by Android (Google) Code Review
Browse files

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

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