修复任务未下载时,直接删除任务导致的注解回调方法中任务状态错误

https://github.com/AriaLyy/Aria/issues/123
,重试失败任务添加网络状态判断,网络未连接,将会重试失败
https://github.com/AriaLyy/Aria/issues/119
This commit is contained in:
AriaLyy
2017-09-23 15:26:55 +08:00
parent 29aba07205
commit 21594d736c
20 changed files with 193 additions and 88 deletions

View File

@@ -35,9 +35,7 @@ import java.io.File;
* Ftp下载测试
*/
public class FtpDownloadActivity extends BaseActivity<ActivityFtpDownloadBinding> {
//private final String URL = "ftp://172.18.104.129:21/haha/large.rar";
//private final String URL = "ftp://172.18.104.129:21/haha/large.rar";
private final String URL = "ftp://172.18.104.66:21/haha/成都.mp3";
private final String URL = "ftp://192.168.8.2:21/test.apk";
@Override protected void init(Bundle savedInstanceState) {
super.init(savedInstanceState);

View File

@@ -47,7 +47,7 @@ public class SingleTaskActivity extends BaseActivity<ActivitySingleBinding> {
//"http://kotlinlang.org/docs/kotlin-docs.pdf";
//"https://atom-installer.github.com/v1.13.0/AtomSetup.exe?s=1484074138&ext=.exe";
//"http://static.gaoshouyou.com/d/22/94/822260b849944492caadd2983f9bb624.apk";
"http://sitcac.daxincf.cn/wp-content/uploads/swift_vido/01/element.mp4";
"http://sitcac.daxincf.cn/wp-content/uploads/swift_vido/01/element.mp4_1";
//"http://120.25.196.56:8000/filereq?id=15692406294&ipncid=105635&client=android&filename=20170819185541.avi";
//"http://down2.xiaoshuofuwuqi.com/d/file/filetxt/20170608/14/%BA%DA%CE%D7%CA%A6%E1%C8%C6%F0.txt";
//"http://tinghuaapp.oss-cn-shanghai.aliyuncs.com/20170612201739607815";