mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 09:58:27 +03:00
only parse list as URL if dict case fails
This commit is contained in:
parent
83a89566ac
commit
0684dfe869
1 changed files with 2 additions and 2 deletions
|
@ -327,13 +327,13 @@ namespace Bit.iOS.Extension
|
||||||
_context.ProviderType = type;
|
_context.ProviderType = type;
|
||||||
|
|
||||||
var dict = list as NSDictionary;
|
var dict = list as NSDictionary;
|
||||||
var url = list as NSUrl;
|
|
||||||
if(dict != null && dictAction != null)
|
if(dict != null && dictAction != null)
|
||||||
{
|
{
|
||||||
dictAction(dict);
|
dictAction(dict);
|
||||||
}
|
}
|
||||||
else if(url != null && urlAction != null)
|
else if(list is NSUrl && urlAction != null)
|
||||||
{
|
{
|
||||||
|
var url = list as NSUrl;
|
||||||
urlAction(url);
|
urlAction(url);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue