mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 18:08:26 +03:00
fix opening file on ipad
This commit is contained in:
parent
1374ee31ba
commit
d20b3cadbf
1 changed files with 3 additions and 1 deletions
|
@ -73,7 +73,9 @@ namespace Bit.iOS.Services
|
|||
var url = NSUrl.FromFilename(filePath);
|
||||
var viewer = UIDocumentInteractionController.FromUrl(url);
|
||||
var controller = GetVisibleViewController();
|
||||
return viewer.PresentOpenInMenu(controller.View.Frame, controller.View, true);
|
||||
var rect = UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Pad ?
|
||||
new CGRect(100, 5, 320, 320) : controller.View.Frame;
|
||||
return viewer.PresentOpenInMenu(rect, controller.View, true);
|
||||
}
|
||||
|
||||
public bool CanOpenFile(string fileName)
|
||||
|
|
Loading…
Reference in a new issue