forked from organicmaps/organicmaps
[iOS] Check for 'XXX' currency code
https://jira.mail.ru/browse/MAPSME-14486
This commit is contained in:
parent
6d75eabaee
commit
80b0ce2614
1 changed files with 1 additions and 1 deletions
|
@ -286,7 +286,7 @@ static PlacePageRoadType convertRoadType(RoadWarningMarkType roadType) {
|
|||
}
|
||||
|
||||
NSString * currencyCode = [NSLocale.currentLocale currencyCode];
|
||||
if (currencyCode == nil || currencyCode.length == 0) {
|
||||
if (currencyCode == nil || currencyCode.length == 0 || [currencyCode isEqualToString:@"XXX"]) {
|
||||
currencyCode = [[[NSLocale alloc] initWithLocaleIdentifier:@"en_US"] currencyCode];
|
||||
}
|
||||
std::string currency = [currencyCode UTF8String];
|
||||
|
|
Loading…
Add table
Reference in a new issue