From fe54cc3dde5353da859b5f0840694f218501f00f Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 8 Oct 2019 13:27:25 +0200 Subject: [PATCH] Revert "Always start service on starting user interface" This reverts commit e2d39edb5d45bb76ad1135429990f88da66ea340. --- app/src/main/java/eu/faircode/netguard/ActivityMain.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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() {