This commit is contained in:
@@ -18,11 +18,10 @@ package com.arialyy.aria.core.common;
|
||||
import com.arialyy.annotations.TaskEnum;
|
||||
import com.arialyy.aria.core.download.DownloadGroupTaskListener;
|
||||
import com.arialyy.aria.core.download.DownloadTaskListener;
|
||||
import com.arialyy.aria.core.scheduler.TaskInternalListenerInterface;
|
||||
import com.arialyy.aria.core.scheduler.M3U8PeerTaskListener;
|
||||
import com.arialyy.aria.core.scheduler.SubTaskListener;
|
||||
import com.arialyy.aria.core.scheduler.TaskInternalListenerInterface;
|
||||
import com.arialyy.aria.core.upload.UploadTaskListener;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
@@ -81,7 +80,8 @@ public class ProxyHelper {
|
||||
return result;
|
||||
}
|
||||
result = checkProxyTypeByInterface(clazz);
|
||||
if (result != null) {
|
||||
if (result != null && !result.isEmpty()) {
|
||||
mProxyCache.put(clazz.getName(), result);
|
||||
return result;
|
||||
}
|
||||
result = checkProxyTypeByProxyClass(clazz);
|
||||
|
||||
@@ -175,6 +175,7 @@ public class DownloadReceiver extends AbsReceiver {
|
||||
return;
|
||||
}
|
||||
if (obj instanceof TaskInternalListenerInterface){
|
||||
ProxyHelper.getInstance().checkProxyType(obj.getClass());
|
||||
if (obj instanceof DownloadTaskListener){
|
||||
TaskSchedulers.getInstance().register(obj, TaskEnum.DOWNLOAD);
|
||||
}
|
||||
|
||||
@@ -272,6 +272,7 @@ public class UploadReceiver extends AbsReceiver {
|
||||
return;
|
||||
}
|
||||
if (obj instanceof TaskInternalListenerInterface){
|
||||
ProxyHelper.getInstance().checkProxyType(obj.getClass());
|
||||
if (obj instanceof UploadTaskListener){
|
||||
TaskSchedulers.getInstance().register(obj, TaskEnum.UPLOAD);
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ task clean(type: Delete) {
|
||||
|
||||
ext {
|
||||
versionCode = 390
|
||||
versionName = '3.8.16-beta'
|
||||
versionName = '3.8.16-beta-1'
|
||||
userOrg = 'arialyy'
|
||||
groupId = 'com.arialyy.aria'
|
||||
publishVersion = versionName
|
||||
|
||||
Reference in New Issue
Block a user