Skip to content

Commit

Permalink
Merge pull request #4004 from Bnyro/master
Browse files Browse the repository at this point in the history
Fix crash when repeatedly starting offline background player
  • Loading branch information
Bnyro authored Jun 14, 2023
2 parents 96da8e4 + 75e0c6a commit 293e6bb
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 -> {
Expand Down

0 comments on commit 293e6bb

Please sign in to comment.