I am listening to onMediaItemTransition, onIsPlayingChanged and onPlaybackStateChanged to detect when the current track has changed, and update the UI accordingly.
It all works fine. But if the same MediaItem is added twice to the playlist, then none of these Events are called when it transitions from one instance to the next, the only Event that is generated is a onPositionDiscontinuity which is a bit weird.
I am listening to onMediaItemTransition, onIsPlayingChanged and onPlaybackStateChanged to detect when the current track has changed, and update the UI accordingly.
It all works fine. But if the same MediaItem is added twice to the playlist, then none of these Events are called when it transitions from one instance to the next, the only Event that is generated is a onPositionDiscontinuity which is a bit weird.