diff --git a/res/xml/preferences.xml b/res/xml/preferences.xml index 08eddfac..e1e1828a 100644 --- a/res/xml/preferences.xml +++ b/res/xml/preferences.xml @@ -23,7 +23,7 @@ android:enabled="true" android:title="@string/pref_use_expanded_notifications_title"/> diff --git a/src/org/torproject/android/OrbotMainActivity.java b/src/org/torproject/android/OrbotMainActivity.java index cf4600be..d4ed148e 100644 --- a/src/org/torproject/android/OrbotMainActivity.java +++ b/src/org/torproject/android/OrbotMainActivity.java @@ -570,6 +570,9 @@ public class OrbotMainActivity extends Activity startTor(); + //never allow backgrounds start from this type of intent start + //app devs who want background starts, can use the service intents + /** if (Prefs.allowBackgroundStarts()) { Intent resultIntent; @@ -581,7 +584,7 @@ public class OrbotMainActivity extends Activity resultIntent.putExtra(TorServiceConstants.EXTRA_STATUS, torStatus); setResult(RESULT_OK, resultIntent); finish(); - } + }*/ } else if (action.equals(Intent.ACTION_VIEW))