Skip to content
Snippets Groups Projects
Commit 0bfb4752 authored by Nicolas Pomepuy's avatar Nicolas Pomepuy
Browse files

Fix the wrong position of audio playback for audio on TV

Fixes #2203
parent d3df81dc
No related branches found
No related tags found
1 merge request!1121Fix the wrong position of audio playback for audio on TV
Pipeline #145872 passed with stage
in 4 minutes and 37 seconds
......@@ -101,7 +101,7 @@ class AudioPlayerActivity : BaseTvActivity() {
model.playerState.observe(this, { playerState -> update(playerState) })
val position = intent.getIntExtra(MEDIA_POSITION, 0)
if (intent.hasExtra(MEDIA_PLAYLIST))
intent.getLongExtra(MEDIA_PLAYLIST, -1L).let { MediaUtils.openPlaylist(this, it) }
intent.getLongExtra(MEDIA_PLAYLIST, -1L).let { MediaUtils.openPlaylist(this, it, position) }
else
intent.getParcelableArrayListExtra<MediaWrapper>(MEDIA_LIST)?.let { MediaUtils.openList(this, it, position) }
playToPause = AnimatedVectorDrawableCompat.create(this, R.drawable.anim_play_pause_video)!!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment