mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-27 14:27:15 +00:00
Merge branch 'design2015' into design2015-races
This commit is contained in:
commit
07c65a5aaf
1 file changed
+4
-4
+4
-4
@@ -292,12 +292,12 @@ public class FlagImageResolver {
|
||||
return flagImagesMap.get(NONE);
|
||||
}
|
||||
|
||||
public static SafeUri getFlagImageResource(String flagImageUrl, String twoLetterIsoCountryCode) {
|
||||
public static SafeUri getFlagImageUri(String flagImageUrl, String twoLetterIsoCountryCode) {
|
||||
if (flagImageUrl == null || flagImageUrl.isEmpty()) {
|
||||
if (twoLetterIsoCountryCode == null || twoLetterIsoCountryCode.isEmpty()) {
|
||||
return FlagImageResolver.getEmptyFlagImageResource().getSafeUri();
|
||||
if (twoLetterIsoCountryCode == null || twoLetterIsoCountryCode.isEmpty() || getFlagImageResource(twoLetterIsoCountryCode) == null) {
|
||||
return getEmptyFlagImageResource().getSafeUri();
|
||||
}
|
||||
return FlagImageResolver.getFlagImageResource(twoLetterIsoCountryCode).getSafeUri();
|
||||
return getFlagImageResource(twoLetterIsoCountryCode).getSafeUri();
|
||||
}
|
||||
return UriUtils.fromTrustedString(flagImageUrl);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user