bug fix
This commit is contained in:
@ -17,7 +17,7 @@ Aria,致力于让下载傻瓜化</br>
|
||||
## 下载
|
||||
[](https://bintray.com/arialyy/maven/Aria/_latestVersion)</br>
|
||||
```java
|
||||
compile 'com.arialyy.aria:Aria:2.4.2'
|
||||
compile 'com.arialyy.aria:Aria:2.4.4'
|
||||
```
|
||||
|
||||
## 示例
|
||||
|
@ -201,67 +201,6 @@ public class SingleTaskActivity extends BaseActivity<ActivitySingleBinding> {
|
||||
.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() {
|
||||
|
Reference in New Issue
Block a user