private static boolean hasMatchingAncestor ( Context context , AccessibilityNodeInfoCompat node , NodeFilter filter ) { if ( node == null ) { return false ; } final AccessibilityNodeInfoCompat result = getMatchingAncestor ( context , node , filter ) ; if ( result == null ) { return false ; } result . recycle ( ) ; return true ; }
Check whether a given node has a scrollable ancestor .