mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 15:15:34 +03:00
[KnownUsernameField] Compatibility with more browsers (#1000)
This commit is contained in:
parent
b9e5fc604b
commit
1bb678e455
1 changed files with 3 additions and 1 deletions
|
@ -308,11 +308,13 @@ namespace Bit.Droid.Accessibility
|
|||
public static AccessibilityNodeInfo GetUsernameEditText(string uriString,
|
||||
IEnumerable<AccessibilityNodeInfo> allEditTexts)
|
||||
{
|
||||
string uriAuthority = null;
|
||||
string uriKey = null;
|
||||
string uriLocalPath = null;
|
||||
if (Uri.TryCreate(uriString, UriKind.Absolute, out var uri))
|
||||
{
|
||||
uriKey = uri.Authority;
|
||||
uriAuthority = uri.Authority;
|
||||
uriKey = uriAuthority.StartsWith("www.") ? uriAuthority.Substring(4) : uriAuthority;
|
||||
uriLocalPath = uri.LocalPath;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue