sharing via message view is legible

// FREEBIE
pull/1/head
Michael Kirk 7 years ago
parent 811a4ac4b5
commit 032cf0d953

@ -4,6 +4,7 @@
#import "AttachmentSharing.h" #import "AttachmentSharing.h"
#import "TSAttachmentStream.h" #import "TSAttachmentStream.h"
#import "UIUtil.h"
@implementation AttachmentSharing @implementation AttachmentSharing
@ -24,19 +25,22 @@
] ]
applicationActivities:@[ applicationActivities:@[
]]; ]];
[activityViewController setCompletionWithItemsHandler:^(UIActivityType __nullable activityType, [activityViewController setCompletionWithItemsHandler:^(UIActivityType __nullable activityType,
BOOL completed, BOOL completed,
NSArray * __nullable returnedItems, NSArray *__nullable returnedItems,
NSError * __nullable activityError) { NSError *__nullable activityError) {
DDLogDebug(@"%@ applying signal appearence", self.tag);
[UIUtil applySignalAppearence];
if (activityError) { if (activityError) {
DDLogInfo(@"%@ Failed to share with activityError: %@", self.tag, activityError); DDLogInfo(@"%@ Failed to share with activityError: %@", self.tag, activityError);
} else if (completed) { } else if (completed) {
DDLogInfo(@"%@ Did share with activityType: %@", self.tag, activityType); DDLogInfo(@"%@ Did share with activityType: %@", self.tag, activityType);
} }
}]; }];
// Find the frontmost presented UIViewController from which to present the // Find the frontmost presented UIViewController from which to present the
// share view. // share view.
UIWindow *window = [UIApplication sharedApplication].keyWindow; UIWindow *window = [UIApplication sharedApplication].keyWindow;
@ -47,7 +51,10 @@
OWSAssert(fromViewController); OWSAssert(fromViewController);
[fromViewController presentViewController:activityViewController [fromViewController presentViewController:activityViewController
animated:YES animated:YES
completion:nil]; completion:^{
DDLogDebug(@"%@ applying default system appearence", self.tag);
[UIUtil applyDefaultSystemAppearence];
}];
} }
#pragma mark - Logging #pragma mark - Logging

Loading…
Cancel
Save