mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 18:08:26 +03:00
thread sleeps
This commit is contained in:
parent
9b8bdb0639
commit
ee8c2b5272
1 changed files with 5 additions and 3 deletions
|
@ -438,7 +438,8 @@ namespace Bit.Android
|
||||||
}
|
}
|
||||||
|
|
||||||
private NodeList GetWindowNodes(AccessibilityNodeInfo n, AccessibilityEvent e,
|
private NodeList GetWindowNodes(AccessibilityNodeInfo n, AccessibilityEvent e,
|
||||||
Func<AccessibilityNodeInfo, bool> condition, bool disposeIfUnused, NodeList nodes = null, int j = 0)
|
Func<AccessibilityNodeInfo, bool> condition, bool disposeIfUnused, NodeList nodes = null,
|
||||||
|
int recursiveIterations = 0)
|
||||||
{
|
{
|
||||||
if(nodes == null)
|
if(nodes == null)
|
||||||
{
|
{
|
||||||
|
@ -456,8 +457,9 @@ namespace Bit.Android
|
||||||
|
|
||||||
for(var i = 0; i < n.ChildCount; i++)
|
for(var i = 0; i < n.ChildCount; i++)
|
||||||
{
|
{
|
||||||
var c = n.GetChild(i);
|
System.Threading.Thread.Sleep(10);
|
||||||
GetWindowNodes(c, e, condition, true, nodes, j++);
|
var childNode = n.GetChild(i);
|
||||||
|
GetWindowNodes(childNode, e, condition, true, nodes, recursiveIterations++);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(dispose)
|
if(dispose)
|
||||||
|
|
Loading…
Reference in a new issue