mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-25 07:08:30 +01:00
Check URI against block lists
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user