mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-31 18:11:03 +01:00
Workaround Android not returning ISO country code in upper case
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user