Merge branch 'mkirk/doc-picker-fixups'

pull/1/head
Michael Kirk 8 years ago
commit 718109bca7

@ -254,7 +254,7 @@ class AttachmentApprovalViewController: UIViewController, OWSAudioAttachmentPlay
let fileExtensionLabel = UILabel() let fileExtensionLabel = UILabel()
fileExtensionLabel.text = String(format:NSLocalizedString("ATTACHMENT_APPROVAL_FILE_EXTENSION_FORMAT", fileExtensionLabel.text = String(format:NSLocalizedString("ATTACHMENT_APPROVAL_FILE_EXTENSION_FORMAT",
comment: "Format string for file extension label in call interstitial view"), comment: "Format string for file extension label in call interstitial view"),
fileExtension.capitalized) fileExtension.uppercased())
fileExtensionLabel.textColor = UIColor.white fileExtensionLabel.textColor = UIColor.white
fileExtensionLabel.font = labelFont() fileExtensionLabel.font = labelFont()

@ -2200,7 +2200,7 @@ typedef enum : NSUInteger {
NSString *allItems = (__bridge NSString *)kUTTypeData; NSString *allItems = (__bridge NSString *)kUTTypeData;
NSArray<NSString *> *documentTypes = @[ allItems ]; NSArray<NSString *> *documentTypes = @[ allItems ];
// UIDocumentPickerModeImport copies to a temp file within our container. // UIDocumentPickerModeImport copies to a temp file within our container.
// It uses more memory than "open" but let's us avoid working with security scoped URLs. // It uses more memory than "open" but lets us avoid working with security scoped URLs.
UIDocumentPickerMode pickerMode = UIDocumentPickerModeImport; UIDocumentPickerMode pickerMode = UIDocumentPickerModeImport;
UIDocumentMenuViewController *menuController = UIDocumentMenuViewController *menuController =
[[UIDocumentMenuViewController alloc] initWithDocumentTypes:documentTypes inMode:pickerMode]; [[UIDocumentMenuViewController alloc] initWithDocumentTypes:documentTypes inMode:pickerMode];
@ -2270,7 +2270,7 @@ typedef enum : NSUInteger {
OWSAssert(filename); OWSAssert(filename);
SignalAttachment *attachment = SignalAttachment *attachment =
[[SignalAttachment alloc] initWithData:attachmentData dataUTI:type filename:filename]; [[SignalAttachment alloc] initWithData:attachmentData dataUTI:type filename:filename];
[ThreadUtil sendMessageWithAttachment:attachment inThread:self.thread messageSender:self.messageSender]; [self tryToSendAttachmentIfApproved:attachment];
} }
#pragma mark - UIImagePickerController #pragma mark - UIImagePickerController

Loading…
Cancel
Save