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.
This commit is contained in:
Jules Aguillon
2025-03-22 23:05:19 +01:00
parent 9d12981b34
commit 2d847e53ec

View File

@ -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);