Commits

Ivan Andrus committed b79a2ed

Don't use "iPhone" in email when on an iPad or iPod

Comments (0)

Files changed (1)

Classes/ShareButtonDelegate.m

 
 -(void)displayShareSheet:(UIViewController*)controller forCell:(AlephCell*)newCell fromWhence:(id)origin
 {
-    NSLog(@"displayShareSheet");
     if (viewController) {
         NSLog(@"I shouldn't have to release this controller.");
         [viewController release];
 
 - (void)actionSheet:(UIActionSheet *)as clickedButtonAtIndex:(NSInteger)buttonIndex
 {
-    NSLog(@"button at index %d",buttonIndex);
     BOOL releaseViewController = YES;
     if (cell != nil && buttonIndex != [as cancelButtonIndex]) {
         UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
                 picker.mailComposeDelegate = self;
 
                 if (buttonIndex == 4) { // Report Bug
-                    [picker setSubject:@"Bug in Sage on my iPhone"];
+                    [picker setSubject:[NSString stringWithFormat:@"Bug in Sage on my %@",
+                                        [[UIDevice currentDevice] name]]];
                     [picker setToRecipients:[NSArray arrayWithObject:@"sage-support@googlegroups.com"]];
                 } else {
-                    [picker setSubject:@"Sage on my iPhone"];
+                    [picker setSubject:[NSString stringWithFormat:@"Sage on my %@",
+                                        [[UIDevice currentDevice] name]]];
                 }
 
                 NSString *emailBody =[NSString stringWithFormat:@"<html><style>.sagecell_messages {display:%@;}</style><pre>%@</pre>\n\n<div>%@</div></html>",