adjusted orbot support and moved on to 0.7.2

This commit is contained in:
Christian Schabesberger 2016-01-04 00:10:51 +01:00
parent a8830e2ede
commit 5c492c01a1
7 changed files with 32 additions and 35 deletions

View file

@ -15,10 +15,13 @@ public class App extends Application {
@Override
public void onCreate() {
super.onCreate();
// if Orbot is installed, then default to using Tor, the user can still override
if (OrbotHelper.requestStartTor(this)) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
configureTor(prefs.getBoolean(getString(R.string.useTor), true));
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
if(prefs.getBoolean(getString(R.string.useTorKey), false)) {
OrbotHelper.requestStartTor(this);
configureTor(true);
} else {
configureTor(false);
}
}