PSL refactoring

This commit is contained in:
M66B
2022-05-02 09:55:27 +02:00
parent 682acc879b
commit 65bf57094d
9 changed files with 70 additions and 48 deletions

View File

@@ -119,7 +119,7 @@ public class FragmentDialogOpenLink extends FragmentDialogBase {
String t = title.replaceAll("\\s+", "");
Uri u = Uri.parse(title.contains("://") ? t : "http://" + t);
String host = u.getHost(); // Capture1.PNG
uriTitle = (UriHelper.hasParentDomain(context, host) ? u : null);
uriTitle = (UriHelper.hasTld(context, host) ? u : null);
} else
uriTitle = null;