Fix crash in manual censorship circumvention logic on iOS 9.

// FREEBIE
pull/1/head
Matthew Chen 7 years ago
parent d00928902f
commit e814ae129d

@ -24,7 +24,7 @@ NS_ASSUME_NONNULL_BEGIN
instance.googleDomain = googleDomain;
instance.countryCode = countryCode;
NSString *localizedCountryName = [[NSLocale currentLocale] localizedStringForCountryCode:countryCode];
NSString *localizedCountryName = [[NSLocale currentLocale] displayNameForKey:NSLocaleCountryCode value:countryCode];
if (localizedCountryName.length < 1) {
localizedCountryName = name;
}

Loading…
Cancel
Save