Refactoring

This commit is contained in:
M66B
2021-04-04 13:45:32 +02:00
parent e54a9a2ecd
commit 2fe8e58cf9
6 changed files with 13 additions and 8 deletions

View File

@@ -1580,7 +1580,7 @@ public class MessageHelper {
String domain = email.substring(at + 1);
try {
user = IDN.toASCII(user);
user = IDN.toASCII(user, IDN.ALLOW_UNASSIGNED);
} catch (IllegalArgumentException ex) {
Log.e(ex);
}
@@ -1588,7 +1588,7 @@ public class MessageHelper {
String[] parts = domain.split("\\.");
for (int p = 0; p < parts.length; p++)
try {
parts[p] = IDN.toASCII(parts[p]);
parts[p] = IDN.toASCII(parts[p], IDN.ALLOW_UNASSIGNED);
} catch (IllegalArgumentException ex) {
Log.e(ex);
}