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