From 370f921bc367613164d93dc1ddbd28c57042e0a7 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Thu, 26 Dec 2024 18:29:19 +0100 Subject: Proper support for Android 15 edge-to-edge (#848) The keyboard background now extends under the system bars and display cutout on Android 15 but the keys do not. The back and IME switching buttons that appear in the navigation bar require special care to not overlap with the keyboard. The launcher and settings activity are also fixed. --- srcs/juloo.keyboard2/Config.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'srcs/juloo.keyboard2/Config.java') diff --git a/srcs/juloo.keyboard2/Config.java b/srcs/juloo.keyboard2/Config.java index b28d2c0..9c31a6f 100644 --- a/srcs/juloo.keyboard2/Config.java +++ b/srcs/juloo.keyboard2/Config.java @@ -84,6 +84,7 @@ public final class Config [get_current_layout()] and [set_current_layout()]. */ int current_layout_portrait; int current_layout_landscape; + public int bottomInsetMin; private Config(SharedPreferences prefs, Resources res, IKeyEventHandler h) { @@ -187,6 +188,8 @@ public final class Config current_layout_landscape = _prefs.getInt("current_layout_landscape", 0); circle_sensitivity = Integer.valueOf(_prefs.getString("circle_sensitivity", "2")); clipboard_history_enabled = _prefs.getBoolean("clipboard_history_enabled", false); + bottomInsetMin = Utils.is_navigation_bar_gestural(res) ? + (int)res.getDimension(R.dimen.bottom_inset_min) : 0; } public int get_current_layout() -- cgit v1.2.3