Highlight mail-do domain name, refactoring

This commit is contained in:
M66B
2021-07-02 07:32:15 +02:00
parent 9dc7795320
commit 3449815e68
8 changed files with 71 additions and 24 deletions

View File

@@ -227,15 +227,6 @@ public class DnsHelper {
}
}
static String getParentDomain(String host) {
if (host != null) {
String[] h = host.split("\\.");
if (h.length >= 2)
return h[h.length - 2] + "." + h[h.length - 1];
}
return host;
}
private static String getDnsServer(Context context) {
ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);
if (cm == null)