mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-23 16:25:30 +00:00
Small improvement
This commit is contained in:
parent
25aa780cd0
commit
681953b97d
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue