From f4e2202033414598ef6609fe61a9d097a26b598e Mon Sep 17 00:00:00 2001 From: AriaLyy <511455842@qq.com> Date: Mon, 31 Jul 2017 10:52:01 +0800 Subject: [PATCH] fix bug https://github.com/AriaLyy/Aria/issues/85 --- Aria/src/main/java/com/arialyy/aria/core/inf/AbsTarget.java | 6 +++++- .../com/arialyy/simple/download/SingleTaskActivity.java | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Aria/src/main/java/com/arialyy/aria/core/inf/AbsTarget.java b/Aria/src/main/java/com/arialyy/aria/core/inf/AbsTarget.java index cc4be12c..41d39541 100644 --- a/Aria/src/main/java/com/arialyy/aria/core/inf/AbsTarget.java +++ b/Aria/src/main/java/com/arialyy/aria/core/inf/AbsTarget.java @@ -81,7 +81,11 @@ public abstract class AbsTarget { Aria.download(this) .load(DOWNLOAD_URL) .addHeader("groupName", "value") + .setExtendField("str___ggggggg") .setDownloadPath(Environment.getExternalStorageDirectory().getPath() + "/gggg.apk") .start(); + break; case R.id.stop: Aria.download(this).load(DOWNLOAD_URL).stop();