From 759dfccf581e6823cba5741fd6ebcb7fecc68bee Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Thu, 25 Apr 2024 22:59:00 -0500 Subject: [PATCH] Add second sim operator for JMP data plan --- .../java/eu/siacs/conversations/utils/LocationProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/utils/LocationProvider.java b/src/main/java/eu/siacs/conversations/utils/LocationProvider.java index 1d94b54fa1b17d52d1d26787cedf4d6e45f44a2f..28577016bb63f856b0b42e7224acc33bd46fb649 100644 --- a/src/main/java/eu/siacs/conversations/utils/LocationProvider.java +++ b/src/main/java/eu/siacs/conversations/utils/LocationProvider.java @@ -31,7 +31,7 @@ public class LocationProvider { return getUserCountryFallback(); } Log.d(Config.LOGTAG, "SIM Operator: " + tm.getSimOperator()); - final String simCountry = tm.getSimOperator().equals("20801") ? "us" : tm.getSimCountryIso(); + final String simCountry = "20801".equals(tm.getSimOperator()) || "26001".equals(tm.getSimOperator()) ? "us" : tm.getSimCountryIso(); final String networkCountry = tm.getPhoneType() == TelephonyManager.PHONE_TYPE_CDMA ? null : tm.getNetworkCountryIso(); // if device is not 3G would be unreliable if (preferNetwork && networkCountry != null && networkCountry.length() == 2) { return networkCountry.toUpperCase(Locale.US);