mirror of
https://github.com/M66B/NetGuard.git
synced 2024-12-22 07:43:15 +00:00
Warn only
This commit is contained in:
parent
c8c60ba9f7
commit
c6a3f270de
1 changed files with 1 additions and 4 deletions
|
@ -213,11 +213,8 @@ public class ActivityMain extends AppCompatActivity implements SharedPreferences
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean filter = prefs.getBoolean("filter", false);
|
boolean filter = prefs.getBoolean("filter", false);
|
||||||
if (filter && Util.isPrivateDns(ActivityMain.this)) {
|
if (filter && Util.isPrivateDns(ActivityMain.this))
|
||||||
swEnabled.setChecked(false);
|
|
||||||
Toast.makeText(ActivityMain.this, R.string.msg_private_dns, Toast.LENGTH_LONG).show();
|
Toast.makeText(ActivityMain.this, R.string.msg_private_dns, Toast.LENGTH_LONG).show();
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final Intent prepare = VpnService.prepare(ActivityMain.this);
|
final Intent prepare = VpnService.prepare(ActivityMain.this);
|
||||||
|
|
Loading…
Reference in a new issue