mirror of
https://github.com/bitwarden/android.git
synced 2024-12-20 00:02:58 +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)
|
||||||
|
{
|
||||||
|
_name = uriString.Substring(Constants.AndroidAppProtocol.Length);
|
||||||
|
}
|
||||||
|
else if(!System.Uri.TryCreate(uriString, UriKind.Absolute, out uri) ||
|
||||||
!DomainName.TryParse(uri.Host, out domainName))
|
!DomainName.TryParse(uri.Host, out domainName))
|
||||||
{
|
{
|
||||||
if(uriString != null && uriString.StartsWith(Constants.AndroidAppProtocol))
|
_name = "--";
|
||||||
{
|
|
||||||
_name = uriString.Substring(Constants.AndroidAppProtocol.Length);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue