don't add new task flag - will start on boot automatically

This commit is contained in:
Nathan Freitas 2015-03-19 10:28:37 -04:00
parent 5bd55f9152
commit cae2c7c157
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ public class OnBootReceiver extends BroadcastReceiver {
public void startVpnService (Context context) public void startVpnService (Context context)
{ {
Intent intent = VpnService.prepare(context); Intent intent = VpnService.prepare(context);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); // intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
if (intent != null) { if (intent != null) {
context.startActivity(intent); context.startActivity(intent);
} }