Increase maxActive count to 3 by default

This commit is contained in:
Rahul Kumar Patel
2021-02-16 08:01:31 +05:30
parent dfc706b13e
commit 21347df98a

View File

@@ -44,7 +44,7 @@ class DownloadManager private constructor(var context: Context) {
private fun getFetchConfiguration(context: Context): FetchConfiguration {
var maxActive = Preferences.getInteger(context, Preferences.PREFERENCE_DOWNLOAD_ACTIVE)
if (maxActive == 0)
maxActive = 1
maxActive = 3
return FetchConfiguration.Builder(context)
.setDownloadConcurrentLimit(maxActive)
.enableLogging(BuildConfig.DEBUG)