From affb1ac88d209c498e94c2d496dff7af336b8fea Mon Sep 17 00:00:00 2001 From: DHD2280 Date: Wed, 8 May 2024 21:13:34 +0200 Subject: [PATCH] CHANGELOG: Fix gesture height on some scenarios --- .../xposed/hooks/systemui/navbar/GestureNavbarManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/it/dhd/oxygencustomizer/xposed/hooks/systemui/navbar/GestureNavbarManager.java b/app/src/main/java/it/dhd/oxygencustomizer/xposed/hooks/systemui/navbar/GestureNavbarManager.java index 04e18942e..4abb1f4c7 100644 --- a/app/src/main/java/it/dhd/oxygencustomizer/xposed/hooks/systemui/navbar/GestureNavbarManager.java +++ b/app/src/main/java/it/dhd/oxygencustomizer/xposed/hooks/systemui/navbar/GestureNavbarManager.java @@ -274,8 +274,8 @@ private boolean notWithinInsets(float x, float y, Point mDisplaySize, float mBot } - float topLeft = backGestureHeightFractionLeft.get(1) / 100f; - float topRight = backGestureHeightFractionRight.get(1) / 100f; + float topLeft = backGestureHeightFractionLeft.size() == 2 ? backGestureHeightFractionLeft.get(1) / 100f : 1f; + float topRight = backGestureHeightFractionLeft.size() == 2 ? backGestureHeightFractionRight.get(1) / 100f : 1f; float bottomLeft = backGestureHeightFractionLeft.size() == 2 ? backGestureHeightFractionLeft.get(0) / 100f : 0 / 100f; float bottomRight = backGestureHeightFractionRight.size() == 2 ? backGestureHeightFractionRight.get(0) / 100f : 0 / 100f;