mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 18:08:26 +03:00
read RootInActiveWindow after launcher checks
This commit is contained in:
parent
854ef7e645
commit
99d1a6d043
1 changed files with 9 additions and 6 deletions
|
@ -94,16 +94,19 @@ 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)
|
||||
if(string.IsNullOrWhiteSpace(e?.PackageName) || e.PackageName == SystemUiPackage ||
|
||||
e.PackageName.Contains("launcher"))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var root = RootInActiveWindow;
|
||||
if(root == null || root.PackageName != e.PackageName)
|
||||
{
|
||||
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();
|
||||
|
|
Loading…
Reference in a new issue