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

Commit 9d403530 authored by Jakub Pawlowski's avatar Jakub Pawlowski
Browse files

Fix null callback in updateCurrentMediaControllers

Change-Id: I0f134ce147b8a7396c87900fb4770606d53dd765
parent d6d29935
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -183,9 +183,9 @@ public final class Avrcp {
        mHandler = new AvrcpMessageHandler(looper);

        mSessionChangeListener = new MediaSessionChangeListener();
        mMediaControllerCb = new MediaControllerListener();
        mMediaSessionManager.addOnActiveSessionsChangedListener(mSessionChangeListener, null, mHandler);
        updateCurrentMediaControllers(mMediaSessionManager.getActiveSessions(null));
        mMediaControllerCb = new MediaControllerListener();
    }

    public static Avrcp make(Context context) {