فهرست منبع

change download method

yanyi 6 سال پیش
والد
کامیت
c0e27f130d
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      okhttplib/src/main/java/com/mylove/okhttp/DownloadRequest.java

+ 1 - 1
okhttplib/src/main/java/com/mylove/okhttp/DownloadRequest.java

@@ -36,6 +36,6 @@ public class DownloadRequest {
         if (FormatUtil.isEmpty(filePath)) {
             throw new NullPointerException("filePath is the SDCard directory of the downloaded file, cannot be empty.");
         }
-        DownloadObservable.getInstance(mContext, filePath).request(url, onDownloadListener);
+        DownloadObservable.getInstance(mContext).request(url, filePath, onDownloadListener);
     }
 }