Skip to content

[1.6.0-beta01+] clearMediaItems() is no longer clearing the notification #2211

Closed

Description

@Enjot

Version

Media3 pre-release (alpha, beta or RC not in this list)

More version details

Hi,

I am using MediaSessionService and MediaControllers.
While on 1.6.0-alpha03 and previous versions, clearMediaItems() also cleared the notification.
While on 1.6.0-beta01 and later versions, clearMediaItems() doesn't clear it.

I did a little investigation and I found that this commit is causing the issue.

Devices that reproduce the issue

Any Android device

Reproducible in the demo app?

Yes

Reproduction steps

In demo-session app change this line in MainActivity.kt:78

        browser?.sessionActivity?.send()

To

        browser?.clearMediaItems()

Now, CURRENT PLAYLIST button on the first screen will clear the playlist.
Play some playlist, navigate back, and click this button.

Expected result

The notification will disappear.

Actual result

The notification stays up, but it's not responsive at all.

Activity

  1. self-assigned this
    on Mar 6, 2025
  2. tonihei commented on Mar 6, 2025

    @tonihei
    Collaborator

    Thanks for reporting, we'll provide a fix for that.

  3. locked and limited conversation to collaborators on May 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions