(String email)
| 188 | } |
| 189 | |
| 190 | static String getEmailExtra(String email) { |
| 191 | if (TextUtils.isEmpty(email)) |
| 192 | return null; |
| 193 | |
| 194 | int plus = email.indexOf('+'); |
| 195 | if (plus < 0) |
| 196 | return null; |
| 197 | |
| 198 | int at = email.indexOf('@', plus + 1); |
| 199 | if (at < 0) |
| 200 | return null; |
| 201 | |
| 202 | return email.substring(plus + 1, at); |
| 203 | } |
| 204 | |
| 205 | static String getEmailDomain(String address) { |
| 206 | if (address == null) |
no test coverage detected