[ios] Report a bug device name fix

This commit is contained in:
Igor Khmurets 2014-08-18 16:29:48 +03:00 committed by Alex Zolotarev
parent d4b7c422df
commit e5990bc2f1

View file

@ -183,7 +183,10 @@
struct utsname systemInfo;
uname(&systemInfo);
NSString * machine = [NSString stringWithCString:systemInfo.machine encoding:NSUTF8StringEncoding];
NSString * text = [NSString stringWithFormat:@"\n\n\n\n- %@ (%@)\n- MAPS.ME %@", self.deviceNames[machine], [UIDevice currentDevice].systemVersion, [[NSBundle mainBundle] objectForInfoDictionaryKey:(NSString *)kCFBundleVersionKey]];
NSString * device = self.deviceNames[machine];
if (!device)
device = machine;
NSString * text = [NSString stringWithFormat:@"\n\n\n\n- %@ (%@)\n- MAPS.ME %@", device, [UIDevice currentDevice].systemVersion, [[NSBundle mainBundle] objectForInfoDictionaryKey:(NSString *)kCFBundleVersionKey]];
NSString * email = @"ios@maps.me";
if ([MFMailComposeViewController canSendMail])
{