mirror of
https://github.com/bitwarden/mobile
synced 2025-12-05 23:53:33 +00:00
bail out if recursiveIterations >= 100
This commit is contained in:
@@ -446,7 +446,7 @@ namespace Bit.Android
|
|||||||
nodes = new NodeList();
|
nodes = new NodeList();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(n != null)
|
if(n != null && recursiveIterations < 100)
|
||||||
{
|
{
|
||||||
var dispose = disposeIfUnused;
|
var dispose = disposeIfUnused;
|
||||||
if(n.WindowId == e.WindowId && !(n.ViewIdResourceName?.StartsWith(SystemUiPackage) ?? false) && condition(n))
|
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++)
|
for(var i = 0; i < n.ChildCount; i++)
|
||||||
{
|
{
|
||||||
System.Threading.Thread.Sleep(10);
|
|
||||||
var childNode = n.GetChild(i);
|
var childNode = n.GetChild(i);
|
||||||
GetWindowNodes(childNode, e, condition, true, nodes, recursiveIterations++);
|
GetWindowNodes(childNode, e, condition, true, nodes, recursiveIterations++);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user