Merge branch 'v_3.0' of github.com:AriaLyy/Aria into v_3.0

This commit is contained in:
AriaLyy
2017-04-05 09:50:14 +08:00
15 changed files with 300 additions and 206 deletions

View File

@ -227,12 +227,11 @@ public class SingleTaskActivity extends BaseActivity<ActivitySingleBinding> {
Aria.download(this)
.load(DOWNLOAD_URL)
.setDownloadPath(Environment.getExternalStorageDirectory().getPath() + "/test.apk")
.setDownloadName("test.apk")
.start();
}
private void stop() {
Aria.download(this).load(DOWNLOAD_URL).stop();
Aria.download(this).load(DOWNLOAD_URL).pause();
}
private void cancel() {