From 370f921bc367613164d93dc1ddbd28c57042e0a7 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Thu, 26 Dec 2024 18:29:19 +0100 Subject: [PATCH] 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. --- AndroidManifest.xml | 4 +- res/layout/launcher_activity.xml | 2 +- res/values/styles.xml | 5 ++ res/values/values.xml | 6 ++- srcs/juloo.keyboard2/Config.java | 3 ++ srcs/juloo.keyboard2/Keyboard2.java | 9 ++++ srcs/juloo.keyboard2/Keyboard2View.java | 66 ++++++++++++++++++------- srcs/juloo.keyboard2/Utils.java | 15 ++++++ 8 files changed, 89 insertions(+), 21 deletions(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index a76585c..bee30c3 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -10,11 +10,13 @@ - + + + diff --git a/res/layout/launcher_activity.xml b/res/layout/launcher_activity.xml index 617c9ee..2273641 100644 --- a/res/layout/launcher_activity.xml +++ b/res/layout/launcher_activity.xml @@ -1,5 +1,5 @@ - +