mirror of
https://github.com/bitwarden/android.git
synced 2024-12-25 10:28:28 +03:00
more log info
This commit is contained in:
parent
0982b45473
commit
1a99bbb040
1 changed files with 7 additions and 6 deletions
|
@ -270,7 +270,7 @@ namespace Bit.Android
|
||||||
{
|
{
|
||||||
LogInfo("13");
|
LogInfo("13");
|
||||||
var passwordNodes = GetWindowNodes(root, e, n => n.Password, false);
|
var passwordNodes = GetWindowNodes(root, e, n => n.Password, false);
|
||||||
LogInfo("50");
|
LogInfo("500000000000");
|
||||||
if(passwordNodes.Count > 0)
|
if(passwordNodes.Count > 0)
|
||||||
{
|
{
|
||||||
var uri = GetUri(root);
|
var uri = GetUri(root);
|
||||||
|
@ -474,7 +474,7 @@ 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)
|
Func<AccessibilityNodeInfo, bool> condition, bool disposeIfUnused, NodeList nodes = null, int j = 0)
|
||||||
{
|
{
|
||||||
LogInfo("51");
|
LogInfo("51");
|
||||||
if(nodes == null)
|
if(nodes == null)
|
||||||
|
@ -484,13 +484,14 @@ namespace Bit.Android
|
||||||
|
|
||||||
if(n != null)
|
if(n != null)
|
||||||
{
|
{
|
||||||
LogInfo("52: " + n.WindowId + ", " + n.ViewIdResourceName + ", " + n.Password);
|
LogInfo("52: " + n.ChildCount + ", " + n.WindowId + ", " + n.ViewIdResourceName + ", " + n.Password + ", " + j);
|
||||||
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))
|
||||||
{
|
{
|
||||||
LogInfo("53");
|
LogInfo("53");
|
||||||
dispose = false;
|
dispose = false;
|
||||||
nodes.Add(n);
|
nodes.Add(n);
|
||||||
|
LogInfo("53.1: " + nodes.Count);
|
||||||
}
|
}
|
||||||
|
|
||||||
LogInfo("54: " + n.ChildCount);
|
LogInfo("54: " + n.ChildCount);
|
||||||
|
@ -499,8 +500,8 @@ namespace Bit.Android
|
||||||
LogInfo("55.1");
|
LogInfo("55.1");
|
||||||
var c = n.GetChild(i);
|
var c = n.GetChild(i);
|
||||||
LogInfo("55.2");
|
LogInfo("55.2");
|
||||||
GetWindowNodes(c, e, condition, true, nodes);
|
GetWindowNodes(c, e, condition, true, nodes, j++);
|
||||||
LogInfo("55.3");
|
LogInfo("55.3: " + i + ", " + n.ChildCount + ", " + n.WindowId + ", " + n.ViewIdResourceName + ", " + n.Password + ", " + j);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(dispose)
|
if(dispose)
|
||||||
|
@ -510,7 +511,7 @@ namespace Bit.Android
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
LogInfo("57");
|
LogInfo("57: " + nodes.Count);
|
||||||
return nodes;
|
return nodes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue