Skip to content

Commit

Permalink
Quick fix for 1104118 - Opening the Share UI takes a few seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
st3fan committed Nov 27, 2014
1 parent b239137 commit 1d65295
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Extensions/ShareTo/InitialViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ class InitialViewController: UIViewController, ShareControllerDelegate

ExtensionUtils.extractSharedItemFromExtensionContext(self.extensionContext, completionHandler: { (item, error) -> Void in
if error == nil && item != nil {
self.presentShareDialog(item!)
dispatch_async(dispatch_get_main_queue()) {
self.presentShareDialog(item!)
}
} else {
self.extensionContext!.completeRequestReturningItems([], completionHandler: nil);
}
Expand Down

0 comments on commit 1d65295

Please sign in to comment.