File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
assists/src/main/java/com/ven/assists Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -385,6 +385,7 @@ object AssistsCore {
385385 }
386386 }
387387 nodeList = viewId?.let {
388+ if (it.isEmpty())return @let nodeList
388389 return @let arrayListOf<AccessibilityNodeInfo >().apply {
389390 addAll(nodeList.filter {
390391 return @filter it.viewIdResourceName == viewId
@@ -395,13 +396,15 @@ object AssistsCore {
395396 }
396397
397398 nodeList = text?.let {
399+ if (it.isEmpty())return @let nodeList
398400 return @let arrayListOf<AccessibilityNodeInfo >().apply {
399401 addAll(nodeList.filter {
400402 return @filter it.txt() == text
401403 })
402404 }
403405 } ? : let { return @let nodeList }
404406 nodeList = des?.let {
407+ if (it.isEmpty())return @let nodeList
405408 return @let arrayListOf<AccessibilityNodeInfo >().apply {
406409 addAll(nodeList.filter {
407410 return @filter it.des() == des
You can’t perform that action at this time.
0 commit comments