Skip to content

Commit

Permalink
Fix 'open with' adding more option menu as mail app, save image..
Browse files Browse the repository at this point in the history
  • Loading branch information
nasli committed Jan 24, 2018
1 parent f64c15c commit 75a195a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions Owncloud iOs Client/Tabs/FileTab/OpenWith/OpenWith.m
Original file line number Diff line number Diff line change
Expand Up @@ -101,18 +101,16 @@ - (void)openWithFile: (FileDto *) file{

if (_isTheParentViewACell) {

[self.documentInteractionController presentOpenInMenuFromRect:self.cellFrame inView:self.parentView animated:YES];
[self.documentInteractionController presentOptionsMenuFromRect:self.cellFrame inView:self.parentView animated:YES];

} else {

if (IS_IPHONE) {
[self.documentInteractionController presentOpenInMenuFromRect:CGRectZero inView:presentedView.view animated:YES];
[self.documentInteractionController presentOptionsMenuFromRect:CGRectZero inView:presentedView.view animated:YES];

} else {
[self.documentInteractionController presentOpenInMenuFromBarButtonItem:self.parentButton animated:YES];

[self.documentInteractionController presentOptionsMenuFromBarButtonItem:self.parentButton animated:YES];
}

}

} else {
Expand Down
2 changes: 1 addition & 1 deletion Owncloud iOs Client/Utils/SystemConstants.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@

//openWith mode
//only use open with UIDocumentInteraciton with iOS<11 until fix the issue with UIDocumentInteractionController in iOS11
#define k_use_open_with_UIDocumentInteractionController !IS_IOS11
#define k_use_open_with_UIDocumentInteractionController YES

0 comments on commit 75a195a

Please sign in to comment.