From 308d2da6812d2c050ebeaf0ef5e188093e1fc130 Mon Sep 17 00:00:00 2001 From: zr4in Date: Tue, 12 Nov 2024 17:03:33 +0800 Subject: [PATCH] fix bug: DeviceState.get_all_children doesn't return all the children of choosed view --- droidbot/device_state.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/droidbot/device_state.py b/droidbot/device_state.py index 5cb85555..932886d6 100644 --- a/droidbot/device_state.py +++ b/droidbot/device_state.py @@ -386,7 +386,7 @@ def get_all_children(self, view_dict): children = set(children) for child in children: children_of_child = self.get_all_children(self.views[child]) - children.union(children_of_child) + children = children.union(children_of_child) return children def get_app_activity_depth(self, app):