From 83a89566ac156f613451386e37dc2a172422eeea Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 24 Apr 2017 18:05:23 -0400 Subject: [PATCH] parse url for older extension --- src/iOS.Extension/LoadingViewController.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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; } }); }