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
This commit is contained in:
Julian Winkler
2024-03-25 17:55:30 +01:00
parent c9ac8b162a
commit 2879e03120

View File

@@ -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) {