From 007ebadf162f2f02affe1e89b677cbb60da2bf7f Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 6 Feb 2017 22:02:29 -0500 Subject: [PATCH] removed root var --- src/Android/AutofillService.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Android/AutofillService.cs b/src/Android/AutofillService.cs index 6c4cae457..af5fa68fb 100644 --- a/src/Android/AutofillService.cs +++ b/src/Android/AutofillService.cs @@ -73,12 +73,11 @@ namespace Bit.Android } var cancelNotification = true; - var root = RootInActiveWindow; - var passwordNodes = GetWindowNodes(root, e, n => n.Password); + var passwordNodes = GetWindowNodes(RootInActiveWindow, e, n => n.Password); if(passwordNodes.Any()) { - var uri = GetUri(root); + var uri = GetUri(RootInActiveWindow); if(uri.Contains(BitwardenWebsite)) { break; @@ -86,7 +85,7 @@ namespace Bit.Android 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(); FillCredentials(usernameEditText, passwordNodes); }