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

Commit 58e523a8 authored by Hyundo Moon's avatar Hyundo Moon
Browse files

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

Bug: 119749862
Test: mmm . (under frameworks/av/packages/MediaComponents/apex)
Change-Id: I6266321ed9dea7707b8a80efe2fdac021674e25e
parent e72cb663
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) {