From a08db256611a66ca14e085fbd62a8fe352847e89 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Tue, 1 Jul 2025 23:27:24 +0200 Subject: Fix extra bottom margin when navbar buttons absent (#1024) * Fix extra bottom margin when navbar buttons absent Fix the extra space that was appearing when the gesture-navigation bar didn't contain the "switch IME" or "close IME" buttons. This was found on OneUI 7 with the two "keyboard key" related options turned off. * Remove unneeded nav bar detection and width computation--- srcs/juloo.keyboard2/Config.java | 3 --- 1 file changed, 3 deletions(-) (limited to 'srcs/juloo.keyboard2/Config.java') diff --git a/srcs/juloo.keyboard2/Config.java b/srcs/juloo.keyboard2/Config.java index b2b01da..eafb236 100644 --- a/srcs/juloo.keyboard2/Config.java +++ b/srcs/juloo.keyboard2/Config.java @@ -81,7 +81,6 @@ public final class Config int current_layout_landscape; int current_layout_unfolded_portrait; int current_layout_unfolded_landscape; - public int bottomInsetMin; private Config(SharedPreferences prefs, Resources res, IKeyEventHandler h, Boolean foldableUnfolded) { @@ -176,8 +175,6 @@ public final class Config current_layout_unfolded_landscape = _prefs.getInt("current_layout_unfolded_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