From 0982b454736934c76381e54aef81f39f80361bb7 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 8 Feb 2018 17:44:48 -0500 Subject: [PATCH] more log spam --- src/Android/AutofillService.cs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/Android/AutofillService.cs b/src/Android/AutofillService.cs index b6dc9def6..e4ce424d2 100644 --- a/src/Android/AutofillService.cs +++ b/src/Android/AutofillService.cs @@ -270,6 +270,7 @@ namespace Bit.Android { LogInfo("13"); var passwordNodes = GetWindowNodes(root, e, n => n.Password, false); + LogInfo("50"); if(passwordNodes.Count > 0) { var uri = GetUri(root); @@ -475,6 +476,7 @@ namespace Bit.Android private NodeList GetWindowNodes(AccessibilityNodeInfo n, AccessibilityEvent e, Func condition, bool disposeIfUnused, NodeList nodes = null) { + LogInfo("51"); if(nodes == null) { nodes = new NodeList(); @@ -482,24 +484,33 @@ namespace Bit.Android if(n != null) { + LogInfo("52: " + n.WindowId + ", " + n.ViewIdResourceName + ", " + n.Password); var dispose = disposeIfUnused; if(n.WindowId == e.WindowId && !(n.ViewIdResourceName?.StartsWith(SystemUiPackage) ?? false) && condition(n)) { + LogInfo("53"); dispose = false; nodes.Add(n); } + LogInfo("54: " + n.ChildCount); for(var i = 0; i < n.ChildCount; i++) { - GetWindowNodes(n.GetChild(i), e, condition, true, nodes); + LogInfo("55.1"); + var c = n.GetChild(i); + LogInfo("55.2"); + GetWindowNodes(c, e, condition, true, nodes); + LogInfo("55.3"); } if(dispose) { + LogInfo("56"); n.Dispose(); } } + LogInfo("57"); return nodes; }