mirror of
https://github.com/Julow/Unexpected-Keyboard.git
synced 2025-06-26 20:51:33 +02:00
Fix missing version check
setSystemGestureExclusionRects is API 29. Broken since d644d2b, which almost got into the release!
This commit is contained in:
parent
64c7c8ce20
commit
f7e16c0345
@ -242,13 +242,16 @@ public class Keyboard2View extends View
|
|||||||
{
|
{
|
||||||
if (!changed)
|
if (!changed)
|
||||||
return;
|
return;
|
||||||
// Disable the back-gesture on the keyboard area
|
if (VERSION.SDK_INT >= 29)
|
||||||
Rect keyboard_area = new Rect(
|
{
|
||||||
left + (int)_config.horizontalMargin,
|
// Disable the back-gesture on the keyboard area
|
||||||
top + (int)_config.marginTop,
|
Rect keyboard_area = new Rect(
|
||||||
right - (int)_config.horizontalMargin,
|
left + (int)_config.horizontalMargin,
|
||||||
bottom - (int)_config.marginBottom);
|
top + (int)_config.marginTop,
|
||||||
setSystemGestureExclusionRects(Arrays.asList(keyboard_area));
|
right - (int)_config.horizontalMargin,
|
||||||
|
bottom - (int)_config.marginBottom);
|
||||||
|
setSystemGestureExclusionRects(Arrays.asList(keyboard_area));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user