Skip to content

Commit

Permalink
Merge pull request #28 from frankschlegel/master
Browse files Browse the repository at this point in the history
Signal action as finished when data was send, not when popup was closed.
  • Loading branch information
Tobias Tiemerding committed Oct 15, 2014
2 parents 6ccf0d9 + 5bec09d commit 1c33380
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions TTOpenInAppActivity/TTOpenInAppActivity.m
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ - (void)openSelectFileActionSheet

- (void) documentInteractionControllerWillPresentOpenInMenu:(UIDocumentInteractionController *)controller
{
// iÍnform delegate
// Inform delegate
if([self.delegate respondsToSelector:@selector(openInAppActivityWillPresentDocumentInteractionController:)]) {
[self.delegate openInAppActivityWillPresentDocumentInteractionController:self];
}
Expand All @@ -246,7 +246,10 @@ - (void) documentInteractionControllerDidDismissOpenInMenu: (UIDocumentInteracti
if([self.delegate respondsToSelector:@selector(openInAppActivityDidDismissDocumentInteractionController:)]) {
[self.delegate openInAppActivityDidDismissDocumentInteractionController:self];
}

}

- (void) documentInteractionController:(UIDocumentInteractionController *)controller didEndSendingToApplication:(NSString *)application
{
// Inform app that the activity has finished
[self activityDidFinish:YES];
}
Expand Down

0 comments on commit 1c33380

Please sign in to comment.