任务最高优先级开发

This commit is contained in:
AriaLyy
2017-06-02 17:38:32 +08:00
parent 9aa7df035a
commit 5ee2cba331
59 changed files with 475 additions and 165 deletions

View File

@@ -52,6 +52,13 @@ public class DownloadModule extends BaseModule {
"http://static.gaoshouyou.com/d/36/69/2d3699acfa69e9632262442c46516ad8.apk");
}
/**
* 获取下载列表
*/
public List<DownloadEntity> getDownloadTaskList() {
return Aria.download(getContext()).getTaskList();
}
public String getRadomUrl() {
Random random = new Random();
int i = random.nextInt(2);