"Allow Background Starts" prefs also controls the old START_TOR Intent
This commit is contained in:
parent
adf7c09f0e
commit
943edf094b
|
@ -555,7 +555,8 @@ public class OrbotMainActivity extends Activity
|
|||
|
||||
return; //don't null the setIntent() as we need it later
|
||||
}
|
||||
else if (action.equals("org.torproject.android.START_TOR"))
|
||||
else if (action.equals("org.torproject.android.START_TOR")
|
||||
&& Prefs.allowBackgroundStarts())
|
||||
{
|
||||
autoStartFromIntent = true;
|
||||
try {
|
||||
|
@ -569,7 +570,6 @@ public class OrbotMainActivity extends Activity
|
|||
}
|
||||
resultIntent.putExtra(TorServiceConstants.EXTRA_STATUS, torStatus);
|
||||
setResult(RESULT_OK, resultIntent);
|
||||
finish();
|
||||
} catch (RemoteException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue