From ee8c2b5272ee37df0dfc6fba2a24f717ba7adefd Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 9 Feb 2018 15:00:54 -0500 Subject: [PATCH] thread sleeps --- src/Android/AutofillService.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Android/AutofillService.cs b/src/Android/AutofillService.cs index a54c36c76..27cb944a2 100644 --- a/src/Android/AutofillService.cs +++ b/src/Android/AutofillService.cs @@ -438,7 +438,8 @@ namespace Bit.Android } private NodeList GetWindowNodes(AccessibilityNodeInfo n, AccessibilityEvent e, - Func condition, bool disposeIfUnused, NodeList nodes = null, int j = 0) + Func condition, bool disposeIfUnused, NodeList nodes = null, + int recursiveIterations = 0) { if(nodes == null) { @@ -456,8 +457,9 @@ namespace Bit.Android for(var i = 0; i < n.ChildCount; i++) { - var c = n.GetChild(i); - GetWindowNodes(c, e, condition, true, nodes, j++); + System.Threading.Thread.Sleep(10); + var childNode = n.GetChild(i); + GetWindowNodes(childNode, e, condition, true, nodes, recursiveIterations++); } if(dispose)