From c9007e34566afd78bc1be29407c0760afd8d357d Mon Sep 17 00:00:00 2001 From: Bnyro Date: Tue, 23 Aug 2022 09:11:13 +0200 Subject: [PATCH] fix background mode crash --- .../main/java/com/github/libretube/services/BackgroundMode.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)