Skip to content

Commit 452733b

Browse files
committed
Remove unused variable final_widget in android.touch module
1 parent 2e743bf commit 452733b

File tree

1 file changed

+1
-2
lines changed
  • pythonforandroid/recipes/android/src/android

1 file changed

+1
-2
lines changed

pythonforandroid/recipes/android/src/android/touch.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def _on_touch_listener(cls, event):
149149
`__target_widget` that was provided to `register_listener(...)`.
150150
- Returns `True` (consume/intercept) only when the picked widget is
151151
exactly `__target_widget` and no other widget was found under the
152-
touch (`final_widget is None`). Otherwise returns `False`.
152+
touch. Otherwise returns `False`.
153153
154154
Important notes and limitations:
155155
- There is no filtering by MotionEvent action; all actions reaching
@@ -178,7 +178,6 @@ def _on_touch_listener(cls, event):
178178
# x, y are in Window coordinate. Try to select the widget under the
179179
# touch.
180180
me = None
181-
final_widget = None
182181
for child in reversed(Window.children):
183182
widget = cls._pick(child, x, y)
184183
if not widget:

0 commit comments

Comments
 (0)