diff --git a/src/iOS.Extension/LoadingViewController.cs b/src/iOS.Extension/LoadingViewController.cs index d3ea81f26..aa43a6e60 100644 --- a/src/iOS.Extension/LoadingViewController.cs +++ b/src/iOS.Extension/LoadingViewController.cs @@ -310,7 +310,7 @@ namespace Bit.iOS.Extension } private bool ProcessItemProvider(NSItemProvider itemProvider, string type, Action dictAction, - Action stringAction = null) + Action urlAction = null) { if(!itemProvider.HasItemConformingTo(type)) { @@ -327,14 +327,14 @@ namespace Bit.iOS.Extension _context.ProviderType = type; var dict = list as NSDictionary; - var str = list as NSString; + var url = list as NSUrl; if(dict != null && dictAction != null) { dictAction(dict); } - else if(str != null && stringAction != null) + else if(url != null && urlAction != null) { - stringAction(str); + urlAction(url); } else { @@ -407,11 +407,11 @@ namespace Bit.iOS.Extension } _context.Details = DeserializeDictionary(dict[Constants.AppExtensionWebViewPageDetails] as NSDictionary); - }, (urlString) => + }, (url) => { - if(urlString != null) + if(url != null) { - _context.UrlString = urlString; + _context.UrlString = url.AbsoluteString; } }); }