Skip to content

Commit

Permalink
[APT-10393] Cleanup id copying.
Browse files Browse the repository at this point in the history
The data isn't used as an ID, but its passed into Exoplayer. We still have to set the ID ourselves.
  • Loading branch information
kabliz committed Sep 18, 2024
1 parent e1a5348 commit 2c640c6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ internal class ExoplayerDownloadEngine @Inject constructor(

downloadHelper.prepare(object : DownloadHelper.Callback {
override fun onPrepared(helper: DownloadHelper) {
var request = helper.getDownloadRequest(audioPlayable.id.encodeInByteArray())
request = request.copyWithId(audioPlayable.id.toString())
val request = helper.getDownloadRequest(audioPlayable.id.encodeInByteArray())
.copyWithId(audioPlayable.id.toString())
try {
startDownload(context, request)
} catch (e: Exception) {
Expand Down

0 comments on commit 2c640c6

Please sign in to comment.