[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [orbot/master] tuning boot code to work with VPN



commit dd09c6b19a3f993294453ae3101f72a9227ab4ff
Author: Nathan Freitas <nathan@xxxxxxxxxxx>
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);
         } 



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits