mirror of
https://github.com/Julow/Unexpected-Keyboard.git
synced 2024-11-23 15:53:14 +01:00
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.
This commit is contained in:
parent
69ab869079
commit
4fd6aac137
@ -268,11 +268,8 @@ public class Keyboard2View extends View
|
|||||||
if (VERSION.SDK_INT >= 29)
|
if (VERSION.SDK_INT >= 29)
|
||||||
{
|
{
|
||||||
// Disable the back-gesture on the keyboard area
|
// Disable the back-gesture on the keyboard area
|
||||||
Rect keyboard_area = new Rect(
|
Rect keyboard_area = new Rect(left,
|
||||||
left + (int)_config.horizontal_margin,
|
top + (int)_config.marginTop, right, bottom);
|
||||||
top + (int)_config.marginTop,
|
|
||||||
right - (int)_config.horizontal_margin,
|
|
||||||
bottom - (int)_config.margin_bottom);
|
|
||||||
setSystemGestureExclusionRects(Arrays.asList(keyboard_area));
|
setSystemGestureExclusionRects(Arrays.asList(keyboard_area));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user