mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 09:58:27 +03:00
autofill listing page name for android app fixes
This commit is contained in:
parent
2d6895aeea
commit
6e16ffe05f
1 changed files with 6 additions and 5 deletions
|
@ -31,13 +31,14 @@ namespace Bit.App.Pages
|
||||||
|
|
||||||
Uri uri;
|
Uri uri;
|
||||||
DomainName domainName;
|
DomainName domainName;
|
||||||
if(!System.Uri.TryCreate(uriString, UriKind.Absolute, out uri) ||
|
if(uriString?.StartsWith(Constants.AndroidAppProtocol) ?? false)
|
||||||
!DomainName.TryParse(uri.Host, out domainName))
|
|
||||||
{
|
|
||||||
if(uriString != null && uriString.StartsWith(Constants.AndroidAppProtocol))
|
|
||||||
{
|
{
|
||||||
_name = uriString.Substring(Constants.AndroidAppProtocol.Length);
|
_name = uriString.Substring(Constants.AndroidAppProtocol.Length);
|
||||||
}
|
}
|
||||||
|
else if(!System.Uri.TryCreate(uriString, UriKind.Absolute, out uri) ||
|
||||||
|
!DomainName.TryParse(uri.Host, out domainName))
|
||||||
|
{
|
||||||
|
_name = "--";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue