mirror of https://github.com/M66B/NetGuard.git
Revert "Always start service on starting user interface"
This reverts commit e2d39edb5d
.
This commit is contained in:
parent
a9474ce7e9
commit
fe54cc3dde
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue