AriaManager 逻辑重写,api接口优化

This commit is contained in:
AriaLyy
2017-02-07 17:33:03 +08:00
parent 62d6434914
commit 90c7cd78ff
23 changed files with 452 additions and 415 deletions

View File

@ -86,7 +86,7 @@ public class DownloadModule extends BaseModule {
String[] urls = getContext().getResources().getStringArray(R.array.test_apk_download_url);
List<DownloadEntity> list = new ArrayList<>();
for (String url : urls) {
DownloadEntity entity = Aria.get(getContext()).getDownloadEntity(url);
DownloadEntity entity = Aria.download(getContext()).getDownloadEntity(url);
if (entity == null) {
entity = createDownloadEntity(url);
}