download files via Tor when Tor is enabled

DownloadManager does not let you set its proxy or change how it connects to
the internet.  So we have to make a custom one, unfortunately.  This is a
very basic downloader with none of the special sauce that makes the
built-in DownloadManager handy.
This commit is contained in:
Hans-Christoph Steiner 2016-01-02 22:47:21 +01:00
parent b3a1a5dcc2
commit 0bb0226bc2
3 changed files with 75 additions and 9 deletions

View file

@ -39,4 +39,8 @@ public class App extends Application {
OrbotHelper.requestStartTor(context);
}
}
static boolean isUsingTor() {
return useTor;
}
}