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/Utils.java | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'srcs/juloo.keyboard2/Utils.java') diff --git a/srcs/juloo.keyboard2/Utils.java b/srcs/juloo.keyboard2/Utils.java index 88c865c..5cc1664 100644 --- a/srcs/juloo.keyboard2/Utils.java +++ b/srcs/juloo.keyboard2/Utils.java @@ -49,14 +49,4 @@ public final class Utils out.append(buff, 0, l); return out.toString(); } - - /** Whether the thin gesture-navigation bar is used. - https://stackoverflow.com/questions/36514167/how-to-really-get-the-navigation-bar-height-in-android - */ - public static boolean is_navigation_bar_gestural(Resources res) - { - // core/java/android/view/WindowManagerPolicyConstants.java - int res_id = res.getIdentifier("config_navBarInteractionMode", "integer", "android"); - return (res_id > 0 && res.getInteger(res_id) == 2); - } } -- cgit v1.2.3