diff --git a/Aria/src/main/java/com/arialyy/aria/core/common/AbsFileer.java b/Aria/src/main/java/com/arialyy/aria/core/common/AbsFileer.java index aa8dc8cd..8308f6b4 100644 --- a/Aria/src/main/java/com/arialyy/aria/core/common/AbsFileer.java +++ b/Aria/src/main/java/com/arialyy/aria/core/common/AbsFileer.java @@ -16,6 +16,7 @@ package com.arialyy.aria.core.common; import android.content.Context; +import android.util.SparseArray; import com.arialyy.aria.core.AriaManager; import com.arialyy.aria.core.download.DownloadEntity; import com.arialyy.aria.core.download.DownloadTaskEntity; @@ -64,11 +65,9 @@ public abstract class AbsFileer mTask = new HashMap<>(); + private SparseArray mTask = new SparseArray<>(); private Timer mTimer; @Deprecated private File mConfigFile; @@ -111,8 +110,7 @@ public abstract class AbsFileer 0 ? temp : 0; diff --git a/Aria/src/main/java/com/arialyy/aria/core/common/AbsThreadTask.java b/Aria/src/main/java/com/arialyy/aria/core/common/AbsThreadTask.java index a432f581..bb4fe7be 100644 --- a/Aria/src/main/java/com/arialyy/aria/core/common/AbsThreadTask.java +++ b/Aria/src/main/java/com/arialyy/aria/core/common/AbsThreadTask.java @@ -455,7 +455,7 @@ public abstract class AbsThreadTask temp = mThreadTasks.get(getKey(key)); + key = getKey(key); + Set temp = mThreadTasks.get(key); try { for (Future future : temp) { if (future.isDone() || future.isCancelled()) { diff --git a/README.md b/README.md index b6c32dc9..e97d035f 100644 --- a/README.md +++ b/README.md @@ -32,8 +32,8 @@ Aria有以下特点: [![Download](https://api.bintray.com/packages/arialyy/maven/AriaApi/images/download.svg)](https://bintray.com/arialyy/maven/AriaApi/_latestVersion) [![Download](https://api.bintray.com/packages/arialyy/maven/AriaCompiler/images/download.svg)](https://bintray.com/arialyy/maven/AriaCompiler/_latestVersion) ```java -compile 'com.arialyy.aria:aria-core:3.4.15' -annotationProcessor 'com.arialyy.aria:aria-compiler:3.4.15' +compile 'com.arialyy.aria:aria-core:3.4.16' +annotationProcessor 'com.arialyy.aria:aria-compiler:3.4.16' ``` 如果出现android support,请将 `compile 'com.arialyy.aria:aria-core:'`替换为 ``` diff --git a/build.gradle b/build.gradle index 33bd13cb..ed1e5bf9 100644 --- a/build.gradle +++ b/build.gradle @@ -39,7 +39,7 @@ task clean(type: Delete) { ext { userOrg = 'arialyy' groupId = 'com.arialyy.aria' - publishVersion = '3.4.15' + publishVersion = '3.4.16' // publishVersion = '1.0.3' //FTP插件 repoName='maven' desc = 'android 下载框架'