ソースを参照

change download method

yanyi 6 年 前
コミット
c0e27f130d

+ 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);
     }
 }