Fix crash in manual censorship circumvention logic on iOS 9.

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

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

Loading…
Cancel
Save