1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-23 16:25:30 +00:00

Small improvement

This commit is contained in:
M66B 2020-04-19 17:31:50 +02:00
parent 25aa780cd0
commit 681953b97d

View file

@ -39,6 +39,7 @@ import java.io.IOException;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Locale;
import java.util.Objects;
public class ConnectionHelper {
@ -311,7 +312,7 @@ public class ConnectionHelper {
static Boolean isSyntacticallyInvalid(Throwable ex) {
if (ex.getMessage() == null)
return false;
return ex.getMessage().toLowerCase().contains("syntactically invalid");
return ex.getMessage().toLowerCase(Locale.ROOT).contains("syntactically invalid");
}
static boolean vpnActive(Context context) {