make progress notification for Tor downloader (closes #39)

This commit is contained in:
Hans-Christoph Steiner 2016-01-03 00:04:55 +01:00
parent 0bb0226bc2
commit 9127f7f0c2
2 changed files with 51 additions and 4 deletions

View file

@ -90,7 +90,7 @@ public class DownloadDialog extends DialogFragment {
String saveFilePath = dir + "/" + title + suffix;
if (App.isUsingTor()) {
// if using Tor, do not use DownloadManager because the proxy cannot be set
Downloader.downloadFile(url, saveFilePath);
Downloader.downloadFile(getContext(), url, saveFilePath);
} else {
DownloadManager dm = (DownloadManager) context.getSystemService(Context.DOWNLOAD_SERVICE);
DownloadManager.Request request = new DownloadManager.Request(