From 3e79720d431caebae92deba288b0f5384a3122ee Mon Sep 17 00:00:00 2001 From: AriaLyy <511455842@qq.com> Date: Tue, 14 Mar 2017 20:09:22 +0800 Subject: [PATCH] bug fix --- README.md | 2 +- .../single_task/SingleTaskActivity.java | 61 ------------------- 2 files changed, 1 insertion(+), 62 deletions(-) diff --git a/README.md b/README.md index 25ccf3af..d6c50696 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ Aria,致力于让下载傻瓜化
## 下载 [![Download](https://api.bintray.com/packages/arialyy/maven/Aria/images/download.svg)](https://bintray.com/arialyy/maven/Aria/_latestVersion)
```java -compile 'com.arialyy.aria:Aria:2.4.2' +compile 'com.arialyy.aria:Aria:2.4.4' ``` ## 示例 diff --git a/app/src/main/java/com/arialyy/simple/single_task/SingleTaskActivity.java b/app/src/main/java/com/arialyy/simple/single_task/SingleTaskActivity.java index b888a99a..9de01d3c 100644 --- a/app/src/main/java/com/arialyy/simple/single_task/SingleTaskActivity.java +++ b/app/src/main/java/com/arialyy/simple/single_task/SingleTaskActivity.java @@ -201,67 +201,6 @@ public class SingleTaskActivity extends BaseActivity { .setDownloadPath(Environment.getExternalStorageDirectory().getPath() + "/test.apk") .setDownloadName("test.apk") .start(); - //DownloadEntity entity = new DownloadEntity(); - //entity.setDownloadUrl(DOWNLOAD_URL); - //entity.setDownloadPath(Environment.getExternalStorageDirectory().getPath() + "/test.apk"); - //entity.setFileName("test.apk"); - //DownloadUtil util = new DownloadUtil(this, entity, new IDownloadListener() { - // long fileSize = 1; - // @Override public void supportBreakpoint(boolean support) { - // - // } - // - // @Override public void onCancel() { - // - // } - // - // @Override public void onFail() { - // - // } - // - // @Override public void onPre() { - // - // } - // - // @Override public void onPostPre(long fileSize) { - // this.fileSize = fileSize; - // } - // - // @Override public void onProgress(long currentLocation) { - // long current = currentLocation; - // long len = fileSize; - // if (len == 0) { - // mPb.setProgress(0); - // } else { - // mPb.setProgress((int) ((current * 100) / len)); - // } - // } - // - // @Override public void onChildComplete(long finishLocation) { - // - // } - // - // @Override public void onStart(long startLocation) { - // - // } - // - // @Override public void onChildResume(long resumeLocation) { - // - // } - // - // @Override public void onResume(long resumeLocation) { - // - // } - // - // @Override public void onStop(long stopLocation) { - // - // } - // - // @Override public void onComplete() { - // - // } - //}); - //util.startDownload(); } private void stop() {