diff --git a/Armadillo/src/main/java/com/scribd/armadillo/download/DownloadEngine.kt b/Armadillo/src/main/java/com/scribd/armadillo/download/DownloadEngine.kt index a1671b6..283a89d 100644 --- a/Armadillo/src/main/java/com/scribd/armadillo/download/DownloadEngine.kt +++ b/Armadillo/src/main/java/com/scribd/armadillo/download/DownloadEngine.kt @@ -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) {