From 2879e031209b47b0b5d3c3a46b056776e3fee730 Mon Sep 17 00:00:00 2001 From: Julian Winkler Date: Mon, 25 Mar 2024 17:55:30 +0100 Subject: [PATCH] hack: make GestureOverlayView measure 0 x 0 This restores the behavior before the "remove View.haveComplexMeasure" commit. This hack is still needed as GTK doesn't allow unhandled events to propagate to a sibling in the view hierarchy. This fixes input events in Flappy Bird --- src/api-impl/android/gesture/GestureOverlayView.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/api-impl/android/gesture/GestureOverlayView.java b/src/api-impl/android/gesture/GestureOverlayView.java index 86debe26..0d42ce36 100644 --- a/src/api-impl/android/gesture/GestureOverlayView.java +++ b/src/api-impl/android/gesture/GestureOverlayView.java @@ -7,6 +7,7 @@ public class GestureOverlayView extends ViewGroup { public GestureOverlayView(Context context) { super(context); + haveCustomMeasure = false; // hack: let it measure 0x0, as GTK doesn't allow events to go through it } public void setGestureStrokeType(int type) {