From 6e16ffe05faed96085731dbb7eca988d8d799148 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 28 Apr 2017 12:25:29 -0400 Subject: [PATCH] autofill listing page name for android app fixes --- src/App/Pages/Vault/VaultAutofillListLoginsPage.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/App/Pages/Vault/VaultAutofillListLoginsPage.cs b/src/App/Pages/Vault/VaultAutofillListLoginsPage.cs index 72caa5918..2fb9b62e7 100644 --- a/src/App/Pages/Vault/VaultAutofillListLoginsPage.cs +++ b/src/App/Pages/Vault/VaultAutofillListLoginsPage.cs @@ -31,13 +31,14 @@ namespace Bit.App.Pages Uri uri; DomainName domainName; - if(!System.Uri.TryCreate(uriString, UriKind.Absolute, out uri) || + if(uriString?.StartsWith(Constants.AndroidAppProtocol) ?? false) + { + _name = uriString.Substring(Constants.AndroidAppProtocol.Length); + } + else if(!System.Uri.TryCreate(uriString, UriKind.Absolute, out uri) || !DomainName.TryParse(uri.Host, out domainName)) { - if(uriString != null && uriString.StartsWith(Constants.AndroidAppProtocol)) - { - _name = uriString.Substring(Constants.AndroidAppProtocol.Length); - } + _name = "--"; } else {