make progress notification for Tor downloader (closes #39)
This commit is contained in:
parent
0bb0226bc2
commit
9127f7f0c2
2 changed files with 51 additions and 4 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue