1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2024-12-22 07:43:15 +00:00

Warn only

This commit is contained in:
M66B 2019-10-29 08:59:05 +01:00
parent c8c60ba9f7
commit c6a3f270de

View file

@ -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);