pull/330/head
AriaLyy 8 years ago
parent 822e57365f
commit 41154d47fb
  1. 12
      Aria/src/main/java/com/arialyy/aria/core/task/Task.java

@ -22,6 +22,7 @@ import android.os.Handler;
import android.util.Log; import android.util.Log;
import com.arialyy.aria.core.Aria; import com.arialyy.aria.core.Aria;
import com.arialyy.aria.core.DownloadManager; import com.arialyy.aria.core.DownloadManager;
import com.arialyy.aria.core.TaskEntity;
import com.arialyy.aria.core.scheduler.DownloadSchedulers; import com.arialyy.aria.core.scheduler.DownloadSchedulers;
import com.arialyy.aria.core.scheduler.IDownloadSchedulers; import com.arialyy.aria.core.scheduler.IDownloadSchedulers;
import com.arialyy.aria.core.DownloadEntity; import com.arialyy.aria.core.DownloadEntity;
@ -196,20 +197,9 @@ public class Task {
return this; return this;
} }
///**
// * 设置自定义下载工具
// *
// * @param downloadUtil {@link IDownloadUtil}
// */
//public Builder setDownloadUtil(IDownloadUtil downloadUtil) {
// this.downloadUtil = downloadUtil;
// return this;
//}
public Task build() { public Task build() {
Task task = new Task(context, downloadEntity, outHandler); Task task = new Task(context, downloadEntity, outHandler);
task.setTargetName(targetName); task.setTargetName(targetName);
//Log.w(TAG, "downloadEntity hashcode ==> " + downloadEntity.hashCode());
downloadEntity.save(); downloadEntity.save();
return task; return task;
} }

Loading…
Cancel
Save