commit dd09c6b19a3f993294453ae3101f72a9227ab4ff Author: Nathan Freitas nathan@freitas.net Date: Mon Feb 23 12:29:36 2015 -0500
tuning boot code to work with VPN --- src/org/torproject/android/service/OnBootReceiver.java | 1 + 1 file changed, 1 insertion(+)
diff --git a/src/org/torproject/android/service/OnBootReceiver.java b/src/org/torproject/android/service/OnBootReceiver.java index b04a6a1..643db13 100644 --- a/src/org/torproject/android/service/OnBootReceiver.java +++ b/src/org/torproject/android/service/OnBootReceiver.java @@ -34,6 +34,7 @@ public class OnBootReceiver extends BroadcastReceiver { public void startVpnService (Context context) { Intent intent = VpnService.prepare(context); + intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); if (intent != null) { context.startActivity(intent); }