mirror of
https://github.com/bitwarden/mobile.git
synced 2024-12-25 16:47:55 +01:00
removed root var
This commit is contained in:
parent
c7af81bf0c
commit
007ebadf16
@ -73,12 +73,11 @@ namespace Bit.Android
|
|||||||
}
|
}
|
||||||
|
|
||||||
var cancelNotification = true;
|
var cancelNotification = true;
|
||||||
var root = RootInActiveWindow;
|
var passwordNodes = GetWindowNodes(RootInActiveWindow, e, n => n.Password);
|
||||||
var passwordNodes = GetWindowNodes(root, e, n => n.Password);
|
|
||||||
|
|
||||||
if(passwordNodes.Any())
|
if(passwordNodes.Any())
|
||||||
{
|
{
|
||||||
var uri = GetUri(root);
|
var uri = GetUri(RootInActiveWindow);
|
||||||
if(uri.Contains(BitwardenWebsite))
|
if(uri.Contains(BitwardenWebsite))
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
@ -86,7 +85,7 @@ namespace Bit.Android
|
|||||||
|
|
||||||
if(NeedToAutofill(AutofillActivity.LastCredentials, uri))
|
if(NeedToAutofill(AutofillActivity.LastCredentials, uri))
|
||||||
{
|
{
|
||||||
var allEditTexts = GetWindowNodes(root, e, n => EditText(n));
|
var allEditTexts = GetWindowNodes(RootInActiveWindow, e, n => EditText(n));
|
||||||
var usernameEditText = allEditTexts.TakeWhile(n => !n.Password).LastOrDefault();
|
var usernameEditText = allEditTexts.TakeWhile(n => !n.Password).LastOrDefault();
|
||||||
FillCredentials(usernameEditText, passwordNodes);
|
FillCredentials(usernameEditText, passwordNodes);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user