mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 14:20:30 +05:30
fix background mode crash
This commit is contained in:
parent
93035c941f
commit
c9007e3456
@ -125,7 +125,7 @@ class BackgroundMode : Service() {
|
|||||||
val position = intent.getLongExtra("position", 0L)
|
val position = intent.getLongExtra("position", 0L)
|
||||||
|
|
||||||
// initialize the playlist autoPlay Helper
|
// initialize the playlist autoPlay Helper
|
||||||
if (playlistId != null) autoPlayHelper = AutoPlayHelper(playlistId!!)
|
autoPlayHelper = AutoPlayHelper(playlistId)
|
||||||
|
|
||||||
// play the audio in the background
|
// play the audio in the background
|
||||||
playAudio(videoId, position)
|
playAudio(videoId, position)
|
||||||
|
Loading…
Reference in New Issue
Block a user