diff --git a/app/src/main/java/com/github/libretube/ui/sheets/DownloadOptionsBottomSheet.kt b/app/src/main/java/com/github/libretube/ui/sheets/DownloadOptionsBottomSheet.kt index de255f5a4..78bcc1cba 100644 --- a/app/src/main/java/com/github/libretube/ui/sheets/DownloadOptionsBottomSheet.kt +++ b/app/src/main/java/com/github/libretube/ui/sheets/DownloadOptionsBottomSheet.kt @@ -35,6 +35,7 @@ class DownloadOptionsBottomSheet( 0 -> { val playerIntent = Intent(requireContext(), OfflinePlayerService::class.java) .putExtra(IntentData.videoId, download.videoId) + context?.stopService(playerIntent) ContextCompat.startForegroundService(requireContext(), playerIntent) } 1 -> {