Increase maxActive count to 3 by default
This commit is contained in:
@@ -44,7 +44,7 @@ class DownloadManager private constructor(var context: Context) {
|
|||||||
private fun getFetchConfiguration(context: Context): FetchConfiguration {
|
private fun getFetchConfiguration(context: Context): FetchConfiguration {
|
||||||
var maxActive = Preferences.getInteger(context, Preferences.PREFERENCE_DOWNLOAD_ACTIVE)
|
var maxActive = Preferences.getInteger(context, Preferences.PREFERENCE_DOWNLOAD_ACTIVE)
|
||||||
if (maxActive == 0)
|
if (maxActive == 0)
|
||||||
maxActive = 1
|
maxActive = 3
|
||||||
return FetchConfiguration.Builder(context)
|
return FetchConfiguration.Builder(context)
|
||||||
.setDownloadConcurrentLimit(maxActive)
|
.setDownloadConcurrentLimit(maxActive)
|
||||||
.enableLogging(BuildConfig.DEBUG)
|
.enableLogging(BuildConfig.DEBUG)
|
||||||
|
|||||||
Reference in New Issue
Block a user