From 4fd6aac137176261b0cb2d5cc0c0e4196ade44e8 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Thu, 2 May 2024 23:17:07 +0200 Subject: [PATCH] Make system gesture exclusion rects bigger This is used to opt-out of the back gesture. Using a bigger region is an attempt at debugging a seamingly related bug. --- srcs/juloo.keyboard2/Keyboard2View.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/srcs/juloo.keyboard2/Keyboard2View.java b/srcs/juloo.keyboard2/Keyboard2View.java index 40def60..0fe8d91 100644 --- a/srcs/juloo.keyboard2/Keyboard2View.java +++ b/srcs/juloo.keyboard2/Keyboard2View.java @@ -268,11 +268,8 @@ public class Keyboard2View extends View if (VERSION.SDK_INT >= 29) { // Disable the back-gesture on the keyboard area - Rect keyboard_area = new Rect( - left + (int)_config.horizontal_margin, - top + (int)_config.marginTop, - right - (int)_config.horizontal_margin, - bottom - (int)_config.margin_bottom); + Rect keyboard_area = new Rect(left, + top + (int)_config.marginTop, right, bottom); setSystemGestureExclusionRects(Arrays.asList(keyboard_area)); } }