just read RootInActiveWindow

This commit is contained in:
Kyle Spearrin 2018-02-01 15:42:07 -05:00
parent 86a3f516b1
commit a8eeb12325

View file

@ -88,6 +88,8 @@ namespace Bit.Android
try
{
var root = RootInActiveWindow;
/*
if(e == null || root == null || string.IsNullOrWhiteSpace(e.PackageName) ||
e.PackageName == SystemUiPackage || e.PackageName.Contains("launcher") ||
root.PackageName != e.PackageName)
@ -95,8 +97,6 @@ namespace Bit.Android
return;
}
/*
//var testNodes = GetWindowNodes(root, e, n => n.ViewIdResourceName != null && n.Text != null, false);
//var testNodesData = testNodes.Select(n => new { id = n.ViewIdResourceName, text = n.Text });
//testNodes.Dispose();