Skip to content

Notification is still visible when playlist is empty #2320

Closed
@NicolasDucom

Description

@NicolasDucom

Version

Media3 1.6.0

More version details

Following upgrade to version 1.6.0, when extending SimpleBasePlayer, the notification is still displayed when State.Build().setPlaylist() is given an empty list when building State in getState()
The comments in this commit seem to indicate that the notification should be dismissed if the playlist is cleared

Devices that reproduce the issue

Xiaomi, Samsung and Pixel devices

Devices that do not reproduce the issue

Non for the moment

Reproducible in the demo app?

Not tested

Reproduction steps

Probably not reproductible since the demo app uses ExoPlayer and not an implementation of simpleBasePlayer

Expected result

When the playlist returned in getState is empty, notification shouldn't be visible

Actual result

Notification is visible

Media

Not streaming using Exoplayer

Bug Report

  • You will email the zip file produced by adb bugreport to [email protected] after filing this issue.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions