Revert "Always start service on starting user interface"

This reverts commit e2d39edb5d.
This commit is contained in:
M66B 2019-10-08 13:27:25 +02:00
parent a9474ce7e9
commit fe54cc3dde
1 changed files with 1 additions and 6 deletions

View File

@ -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() {