Skip to content

Commit

Permalink
Change accessibility_node_to_ui_element() function from internal to p…
Browse files Browse the repository at this point in the history
…ublic.

PiperOrigin-RevId: 678857009
  • Loading branch information
The android_world Authors committed Sep 26, 2024
1 parent 899d4d6 commit 8c66acb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions android_world/env/representation_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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


Expand Down

0 comments on commit 8c66acb

Please sign in to comment.