diff --git a/app/src/main/java/eu/faircode/netguard/ActivityMain.java b/app/src/main/java/eu/faircode/netguard/ActivityMain.java index 634550a8..15bb9342 100644 --- a/app/src/main/java/eu/faircode/netguard/ActivityMain.java +++ b/app/src/main/java/eu/faircode/netguard/ActivityMain.java @@ -259,13 +259,8 @@ public class ActivityMain extends AppCompatActivity implements SharedPreferences ServiceSinkhole.stop("switch off", ActivityMain.this, false); } }); - if (enabled) { - Intent prepare = VpnService.prepare(ActivityMain.this); - if (prepare == null) - ServiceSinkhole.start("ui", this); - + if (enabled) checkDoze(); - } // Network is metered ivMetered.setOnLongClickListener(new View.OnLongClickListener() {