fix background mode crash

This commit is contained in:
Bnyro 2022-08-23 09:11:13 +02:00
parent 93035c941f
commit c9007e3456

View File

@ -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)