UploadMediaPresenter.java: Changed toUpperCase to toLowerCase(Locale.ROOT)

This commit is contained in:
Junwei Bai 2024-10-19 17:02:02 +11:00
parent 1c539cd59c
commit be2aa30789

View file

@ -129,9 +129,9 @@ public class UploadMediaPresenter implements UserActionListener, SimilarImageInt
if (place.location != null) { if (place.location != null) {
final String countryCode = reverseGeoCode(place.location); final String countryCode = reverseGeoCode(place.location);
if (countryCode != null && WLM_SUPPORTED_COUNTRIES if (countryCode != null && WLM_SUPPORTED_COUNTRIES
.contains(countryCode.toLowerCase())) { .contains(countryCode.toLowerCase(Locale.ROOT))) {
uploadItem.setWLMUpload(true); uploadItem.setWLMUpload(true);
uploadItem.setCountryCode(countryCode.toLowerCase()); uploadItem.setCountryCode(countryCode.toLowerCase(Locale.ROOT));
} }
} }
} }