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

Commit 89375cd4 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Merge cherrypicks of ['googleplex-android-review.googlesource.com/27195875'] into 24Q3-release.

Change-Id: I7319c888e72d3174f5901b28a76b3831ba88300e
parents ca29e733 23e548e9
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -382,16 +382,16 @@ public class NotificationMediaManager implements Dumpable {

    private void clearCurrentMediaNotificationSession() {
        mMediaMetadata = null;
        mBackgroundExecutor.execute(() -> {
            if (mMediaController != null) {
                if (DEBUG_MEDIA) {
                    Log.v(TAG, "DEBUG_MEDIA: Disconnecting from old controller: "
                            + mMediaController.getPackageName());
                }
            mBackgroundExecutor.execute(() -> {
                mMediaController.unregisterCallback(mMediaListener);
                mMediaController = null;
            });
            }
        });
    }

    public interface MediaListener {