mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-29 21:34:44 +02:00
Highlight mail-do domain name, refactoring
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user