mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 14:20:30 +05:30
Merge pull request #2975 from praveenrajput/master
Crash fix on playlist background playback
This commit is contained in:
commit
c75f1dcb85
@ -57,12 +57,7 @@ class PlaylistOptionsBottomSheet(
|
||||
// play the playlist in the background
|
||||
getString(R.string.playOnBackground) -> {
|
||||
runBlocking {
|
||||
val playlist =
|
||||
if (playlistType == PlaylistType.PRIVATE) {
|
||||
RetrofitInstance.authApi.getPlaylist(playlistId)
|
||||
} else {
|
||||
RetrofitInstance.api.getPlaylist(playlistId)
|
||||
}
|
||||
val playlist = PlaylistsHelper.getPlaylist(playlistId)
|
||||
BackgroundHelper.playOnBackground(
|
||||
context = requireContext(),
|
||||
videoId = playlist.relatedStreams[0].url!!.toID(),
|
||||
|
Loading…
Reference in New Issue
Block a user