diff --git a/app/src/main/java/com/github/libretube/services/BackgroundMode.kt b/app/src/main/java/com/github/libretube/services/BackgroundMode.kt index f3932a304..899576dbe 100644 --- a/app/src/main/java/com/github/libretube/services/BackgroundMode.kt +++ b/app/src/main/java/com/github/libretube/services/BackgroundMode.kt @@ -125,7 +125,7 @@ class BackgroundMode : Service() { val position = intent.getLongExtra("position", 0L) // initialize the playlist autoPlay Helper - if (playlistId != null) autoPlayHelper = AutoPlayHelper(playlistId!!) + autoPlayHelper = AutoPlayHelper(playlistId) // play the audio in the background playAudio(videoId, position)