don't add new task flag - will start on boot automatically
This commit is contained in:
parent
5bd55f9152
commit
cae2c7c157
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue