mirror of
https://github.com/bitwarden/android.git
synced 2024-12-25 02:18:27 +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 url = NSUrl.FromFilename(filePath);
|
||||||
var viewer = UIDocumentInteractionController.FromUrl(url);
|
var viewer = UIDocumentInteractionController.FromUrl(url);
|
||||||
var controller = GetVisibleViewController();
|
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)
|
public bool CanOpenFile(string fileName)
|
||||||
|
|
Loading…
Reference in a new issue