Check URI against block lists

This commit is contained in:
M66B
2021-08-08 12:57:55 +02:00
parent df90a94e7b
commit 76e99796a5
2 changed files with 15 additions and 4 deletions

View File

@@ -408,13 +408,13 @@ public class FragmentDialogOpenLink extends FragmentDialogBase {
if (check_links_dbl &&
tvSuspicious.getVisibility() != View.VISIBLE) {
Bundle args = new Bundle();
args.putString("host", host);
args.putParcelable("uri", uri);
new SimpleTask<Boolean>() {
@Override
protected Boolean onExecute(Context context, Bundle args) throws Throwable {
String host = args.getString("host");
return DnsBlockList.isJunk(context, host);
Uri uri = args.getParcelable("uri");
return DnsBlockList.isJunk(context, uri);
}
@Override