detatch android related downloader from crawler

This commit is contained in:
Christian Schabesberger 2016-01-28 21:21:19 +01:00
parent f152d66cd8
commit 54d318bf04
12 changed files with 243 additions and 165 deletions

View file

@ -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(