public static boolean hasLegacyWebContent(AccessibilityNodeInfoCompat node) {
        if (node == null) {
            return false;
        }

        if (!supportsWebActions(node)) {
            return false;
        }

        // ChromeVox does not have sub elements, so if the parent element also has web content
        // this cannot be ChromeVox.
        AccessibilityNodeInfoCompat parent = node.getParent();
        if (supportsWebActions(parent)) {
            if (parent != null) {
                parent.recycle();
            }

            return false;
        }

        if (parent != null) {
            parent.recycle();
        }

        // ChromeVox never has child elements
        return node.getChildCount() == 0;
    }
public static boolean hasLegacyWebContent ( AccessibilityNodeInfoCompat node ) { if ( node == null ) { return false ; } if ( ! supportsWebActions ( node ) ) { return false ; } AccessibilityNodeInfoCompat parent = node . getParent ( ) ; if ( supportsWebActions ( parent ) ) { if ( parent != null ) { parent . recycle ( ) ; } return false ; } if ( parent != null ) { parent . recycle ( ) ; } return node . getChildCount ( ) == 0 ; }
Determines whether or not the given node contains ChromeVox content.

@param node The node to evaluate
@return {@code true} if the node contains ChromeVox content, {@code false} otherwise