From 8c66acbe6955910f554196275288e5ea3f472036 Mon Sep 17 00:00:00 2001 From: The android_world Authors Date: Wed, 25 Sep 2024 14:50:50 -0700 Subject: [PATCH] Change accessibility_node_to_ui_element() function from internal to public. PiperOrigin-RevId: 678857009 --- android_world/env/representation_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android_world/env/representation_utils.py b/android_world/env/representation_utils.py index 9fe70ad..3e556a2 100644 --- a/android_world/env/representation_utils.py +++ b/android_world/env/representation_utils.py @@ -76,7 +76,7 @@ class UIElement: resource_id: Optional[str] = None -def _accessibility_node_to_ui_element( +def accessibility_node_to_ui_element( node: Any, screen_size: Optional[tuple[int, int]] = None, ) -> UIElement: @@ -158,7 +158,7 @@ def forest_to_ui_elements( if exclude_invisible_elements and not node.is_visible_to_user: continue else: - elements.append(_accessibility_node_to_ui_element(node, screen_size)) + elements.append(accessibility_node_to_ui_element(node, screen_size)) return elements