Workaround Android not returning ISO country code in upper case

pull/178/head
M66B 6 years ago
parent e991634ef5
commit 869d62fb8e

@ -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) {

Loading…
Cancel
Save