mirror of
https://github.com/samsonjs/media.git
synced 2026-04-04 11:05:47 +00:00
Update notification when timeline changes
Notification buttons for next/previous should change based on the new index of the currently played media item after another media item is added or removed from a playlist.
Issue: androidx/media#130
PiperOrigin-RevId: 485869144
(cherry picked from commit 2633f37a2f)
This commit is contained in:
parent
6871de23a4
commit
5ac4700c9a
1 changed files with 2 additions and 1 deletions
|
|
@ -294,7 +294,8 @@ import java.util.concurrent.TimeoutException;
|
|||
if (events.containsAny(
|
||||
Player.EVENT_PLAYBACK_STATE_CHANGED,
|
||||
Player.EVENT_PLAY_WHEN_READY_CHANGED,
|
||||
Player.EVENT_MEDIA_METADATA_CHANGED)) {
|
||||
Player.EVENT_MEDIA_METADATA_CHANGED,
|
||||
Player.EVENT_TIMELINE_CHANGED)) {
|
||||
mediaSessionService.onUpdateNotification(session);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue