Fix Magic Number problem in DownloadFile (caused by #431).

This commit is contained in:
tzugen 2021-04-27 10:04:35 +02:00
parent 3e8cf63603
commit 4f70c61592
No known key found for this signature in database
GPG Key ID: 61E9C34BC10EC930
1 changed files with 5 additions and 1 deletions

View File

@ -45,7 +45,7 @@ class DownloadFile(
private val mediaStoreService: MediaStoreService
private var downloadTask: CancellableTask? = null
var isFailed = false
private var retryCount = 5
private var retryCount = MAX_RETRIES
private val desiredBitRate: Int = Util.getMaxBitRate(context)
@ -382,4 +382,8 @@ class DownloadFile(
}
}
}
companion object {
const val MAX_RETRIES = 5
}
}