1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-03 13:44:40 +00:00

Workaround Android not returning ISO country code in upper case

This commit is contained in:
M66B 2020-04-12 09:38:18 +02:00
parent e991634ef5
commit 869d62fb8e

View file

@ -161,8 +161,8 @@ public class ConnectionHelper {
String network = tm.getNetworkCountryIso();
Log.i("Country SIM=" + sim + " network=" + network);
if (sim != null && network != null &&
RLAH_COUNTRY_CODES.contains(sim) &&
RLAH_COUNTRY_CODES.contains(network))
RLAH_COUNTRY_CODES.contains(sim.toUpperCase()) &&
RLAH_COUNTRY_CODES.contains(network.toUpperCase()))
state.roaming = false;
}
} catch (Throwable ex) {