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

Commit 459376a4 authored by Adrian Roos's avatar Adrian Roos
Browse files

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

This reverts commit 58e523a8.

Reason for revert: Return and parameter types of added SystemApi are not themselves part of the API.

Change-Id: I4898fd6cda7ec57f386d1c382e55c9f3cfcaa43e
parent 58e523a8
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) {