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

Commit 93e38966 authored by Dowon Park's avatar Dowon Park Committed by android-build-merger
Browse files

Merge "AVRCP: Reset mActivePlayerId on cleanup"

am: 1701d5f8

Change-Id: Ia87da453698c7c8ea1c3a3149e4e026c2f92d8af
parents a2c9f3bc 1701d5f8
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -197,6 +197,8 @@ public class MediaPlayerList {
    void cleanup() {
    void cleanup() {
        mContext.unregisterReceiver(mPackageChangedBroadcastReceiver);
        mContext.unregisterReceiver(mPackageChangedBroadcastReceiver);


        mActivePlayerId = NO_ACTIVE_PLAYER;

        mMediaSessionManager.removeOnActiveSessionsChangedListener(mActiveSessionsChangedListener);
        mMediaSessionManager.removeOnActiveSessionsChangedListener(mActiveSessionsChangedListener);
        mMediaSessionManager.setCallback(null, null);
        mMediaSessionManager.setCallback(null, null);
        mMediaSessionManager = null;
        mMediaSessionManager = null;