(Context context, String host)
| 140 | } |
| 141 | |
| 142 | static boolean isTld(Context context, String host) { |
| 143 | if (host == null) |
| 144 | return false; |
| 145 | String tld = getTld(context, host); |
| 146 | return (tld != null && tld.equals(host)); |
| 147 | } |
| 148 | |
| 149 | static boolean hasTld(Context context, String host) { |
| 150 | return (host != null && getTld(context, host) != null); |