Skip to content

Commit bed2511

Browse files
fix android drag and drop
1 parent 54cae2c commit bed2511

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/askui/tools/android/tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ class AndroidDragAndDropTool(Tool):
117117
"""
118118

119119
def __init__(self, agent_os_facade: AndroidAgentOsFacade) -> None:
120-
self._agent_os_facade = agent_os_facade
121120
super().__init__(
122121
name="android_drag_and_drop_tool",
123122
description=(
@@ -160,6 +159,7 @@ def __init__(self, agent_os_facade: AndroidAgentOsFacade) -> None:
160159
"required": ["x1", "y1", "x2", "y2"],
161160
},
162161
)
162+
self._agent_os_facade = agent_os_facade
163163

164164
@override
165165
def __call__(self, x1: int, y1: int, x2: int, y2: int, duration: int = 1000) -> str:

0 commit comments

Comments
 (0)