From 2d847e53ecca23e759b5f03a62c20fa1efb573a1 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Sat, 22 Mar 2025 23:05:19 +0100 Subject: [PATCH] edge-to-edge: Set setDecorFitsSystemWindows(false) This fixes the unwanted margin at the bottom of the screen on Samsung One UI 7 based on Android 15. --- srcs/juloo.keyboard2/Keyboard2.java | 1 + 1 file changed, 1 insertion(+) diff --git a/srcs/juloo.keyboard2/Keyboard2.java b/srcs/juloo.keyboard2/Keyboard2.java index 9ce78f1..2858dfa 100644 --- a/srcs/juloo.keyboard2/Keyboard2.java +++ b/srcs/juloo.keyboard2/Keyboard2.java @@ -315,6 +315,7 @@ public class Keyboard2 extends InputMethodService WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS; // Allow to draw behind system bars wattrs.setFitInsetsTypes(0); + window.setDecorFitsSystemWindows(false); } updateLayoutHeightOf(window, ViewGroup.LayoutParams.MATCH_PARENT); final View inputArea = window.findViewById(android.R.id.inputArea);