|
|
@ -56,7 +56,6 @@ public class TestMutilTaskSysDownload extends BaseActivity<TestActivityMultiBind |
|
|
|
int maxNum = Aria.get(this).getDownloadConfig().getMaxTaskNum(); |
|
|
|
int maxNum = Aria.get(this).getDownloadConfig().getMaxTaskNum(); |
|
|
|
for (int i = 0; i < urlArray.length; i++) { |
|
|
|
for (int i = 0; i < urlArray.length; i++) { |
|
|
|
if (i < maxNum) { |
|
|
|
if (i < maxNum) { |
|
|
|
|
|
|
|
|
|
|
|
Aria.download(this) |
|
|
|
Aria.download(this) |
|
|
|
.load(baseUrl + urlArray[i]) |
|
|
|
.load(baseUrl + urlArray[i]) |
|
|
|
.setDownloadPath(Environment.getExternalStorageDirectory() + "/test/" + i + ".jpg") |
|
|
|
.setDownloadPath(Environment.getExternalStorageDirectory() + "/test/" + i + ".jpg") |
|
|
|