Skip to content

Commit

Permalink
Warn only
Browse files Browse the repository at this point in the history
  • Loading branch information
M66B committed Oct 29, 2019
1 parent c8c60ba commit c6a3f27
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/src/main/java/eu/faircode/netguard/ActivityMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,8 @@ public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
}

boolean filter = prefs.getBoolean("filter", false);
if (filter && Util.isPrivateDns(ActivityMain.this)) {
swEnabled.setChecked(false);
if (filter && Util.isPrivateDns(ActivityMain.this))
Toast.makeText(ActivityMain.this, R.string.msg_private_dns, Toast.LENGTH_LONG).show();
return;
}

try {
final Intent prepare = VpnService.prepare(ActivityMain.this);
Expand Down

0 comments on commit c6a3f27

Please sign in to comment.