abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2/Utils.java
diff options
context:
space:
mode:
authorJules Aguillon2025-07-01 23:27:24 +0200
committerGitHub2025-07-01 23:27:24 +0200
commita08db256611a66ca14e085fbd62a8fe352847e89 (patch)
treea275e252eb23239f7e2b10501328d5c7a71ca84e /srcs/juloo.keyboard2/Utils.java
parent4ed8594794691e5991c414337fd4ede7a9e857cc (diff)
downloadunexpected-keyboard-a08db256611a66ca14e085fbd62a8fe352847e89.tar.gz
unexpected-keyboard-a08db256611a66ca14e085fbd62a8fe352847e89.zip
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
Diffstat (limited to 'srcs/juloo.keyboard2/Utils.java')
-rw-r--r--srcs/juloo.keyboard2/Utils.java10
1 files changed, 0 insertions, 10 deletions
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);
- }
}