View: always call dispatchTouchEvent() if overwritten

This commit is contained in:
Julian Winkler
2024-12-10 23:41:33 +01:00
parent 1398125eb5
commit 864750020e
4 changed files with 8 additions and 6 deletions

View File

@@ -1066,8 +1066,6 @@ public class View implements Drawable.Callback {
boolean handled = false;
if (on_touch_listener != null)
handled = on_touch_listener.onTouch(this, event);
if (!handled)
handled = dispatchTouchEvent(event);
return handled;
}