From 869d62fb8eae30493c3b94e6a5b397e090884fd5 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 12 Apr 2020 09:38:18 +0200 Subject: [PATCH] Workaround Android not returning ISO country code in upper case --- app/src/main/java/eu/faircode/email/ConnectionHelper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ConnectionHelper.java b/app/src/main/java/eu/faircode/email/ConnectionHelper.java index 12a9f3155d..688120e8b9 100644 --- a/app/src/main/java/eu/faircode/email/ConnectionHelper.java +++ b/app/src/main/java/eu/faircode/email/ConnectionHelper.java @@ -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) {