mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00

Currently the notification disappears immediately when the player enters an error or stopped state, but still has its media and could resume on user request. This can be fixed by only checking the existence of media and not the state when deciding to show a notification. PiperOrigin-RevId: 726901050 (cherry picked from commit f0da364d3fdd8574c8506f0682a7d2ecf8135ad8)