forked from organicmaps/organicmaps
[ios] Report a bug device name fix
This commit is contained in:
parent
d4b7c422df
commit
e5990bc2f1
1 changed files with 4 additions and 1 deletions
|
@ -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])
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue