mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 01:48:25 +03:00
bail out if recursiveIterations >= 100
This commit is contained in:
parent
ee8c2b5272
commit
e875b530b1
1 changed files with 1 additions and 2 deletions
|
@ -446,7 +446,7 @@ namespace Bit.Android
|
|||
nodes = new NodeList();
|
||||
}
|
||||
|
||||
if(n != null)
|
||||
if(n != null && recursiveIterations < 100)
|
||||
{
|
||||
var dispose = disposeIfUnused;
|
||||
if(n.WindowId == e.WindowId && !(n.ViewIdResourceName?.StartsWith(SystemUiPackage) ?? false) && condition(n))
|
||||
|
@ -457,7 +457,6 @@ namespace Bit.Android
|
|||
|
||||
for(var i = 0; i < n.ChildCount; i++)
|
||||
{
|
||||
System.Threading.Thread.Sleep(10);
|
||||
var childNode = n.GetChild(i);
|
||||
GetWindowNodes(childNode, e, condition, true, nodes, recursiveIterations++);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue