diff --git a/app/src/apiOreo/java/foundation/e/blisslauncher/features/weather/CustomLocationPreference.java b/app/src/apiOreo/java/foundation/e/blisslauncher/features/weather/CustomLocationPreference.java index 34513b07cf4dc052ec3f1df06b4bb60d28f23bd4..acabed861621a880f83e45c14f19917a412b8009 100644 --- a/app/src/apiOreo/java/foundation/e/blisslauncher/features/weather/CustomLocationPreference.java +++ b/app/src/apiOreo/java/foundation/e/blisslauncher/features/weather/CustomLocationPreference.java @@ -98,11 +98,11 @@ public class CustomLocationPreference extends EditTextPreference private CharSequence[] buildItemList(List results) { boolean needCountry = false, needPostal = false; - String countryId = results.get(0).getCountryId(); + String firstCountry = results.get(0).getCountry(); HashSet postalIds = new HashSet<>(); for (WeatherLocation result : results) { - if (!TextUtils.equals(result.getCountryId(), countryId)) { + if (!TextUtils.equals(result.getCountry(), firstCountry)) { needCountry = true; } String postalId = result.getCountryId() + "##" + result.getCity();