detatch android related downloader from crawler
This commit is contained in:
parent
f152d66cd8
commit
54d318bf04
12 changed files with 243 additions and 165 deletions
|
|
@ -107,7 +107,7 @@ public class DownloadDialog extends DialogFragment {
|
|||
long id = 0;
|
||||
if (App.isUsingTor()) {
|
||||
// if using Tor, do not use DownloadManager because the proxy cannot be set
|
||||
Downloader.downloadFile(getContext(), url, saveFilePath, title);
|
||||
FileDownloader.downloadFile(getContext(), url, saveFilePath, title);
|
||||
} else {
|
||||
DownloadManager dm = (DownloadManager) context.getSystemService(Context.DOWNLOAD_SERVICE);
|
||||
DownloadManager.Request request = new DownloadManager.Request(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue