abouttreesummaryrefslogcommitdiff
diff options
context:
space:
mode:
authorJules Aguillon2026-02-25 00:12:43 +0100
committerGitHub2026-02-25 00:12:43 +0100
commit958900ca2feedee35a5b32c831f505b88628de22 (patch)
tree68df9c552ae7c5b629a07c381d60643d83639a63
parentae4a9d4514f2680e81e9b9dc0e333d5f9975be22 (diff)
downloadunexpected-keyboard-958900ca2feedee35a5b32c831f505b88628de22.tar.gz
unexpected-keyboard-958900ca2feedee35a5b32c831f505b88628de22.zip
Update target SDK version to 36 (#1190)
* Fix keyboard not showing on Android 16 * Update target SDK version to 36
-rw-r--r--CONTRIBUTING.md2
-rw-r--r--build.gradle.kts4
-rw-r--r--srcs/juloo.keyboard2/Keyboard2.java9
3 files changed, 12 insertions, 3 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index f2f37a6..dfbb10b 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -7,7 +7,7 @@ Thanks for contributing :)
The application uses Gradle and can be used with Android Studio, but using
Android Studio is not required. The build dependencies are:
- OpenJDK 17
-- Android SDK: build tools (minimum `28.0.1`), platform `30`
+- Android SDK: build tools, platform `36`
Python 3 is required to update generated files but not to build the app.
diff --git a/build.gradle.kts b/build.gradle.kts
index 8c8b6d7..1108100 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -14,12 +14,12 @@ dependencies {
android {
namespace = "juloo.keyboard2"
- compileSdkVersion = "android-35"
+ compileSdkVersion = "android-36"
defaultConfig {
applicationId = "juloo.keyboard2"
minSdk = 21
- targetSdk { version = release(35) }
+ targetSdk { version = release(36) }
versionCode = 50
versionName = "1.32.1"
}
diff --git a/srcs/juloo.keyboard2/Keyboard2.java b/srcs/juloo.keyboard2/Keyboard2.java
index 2a7695c..af536dd 100644
--- a/srcs/juloo.keyboard2/Keyboard2.java
+++ b/srcs/juloo.keyboard2/Keyboard2.java
@@ -351,6 +351,15 @@ public class Keyboard2 extends InputMethodService
return false;
}
+ @Override
+ public boolean onEvaluateInputViewShown()
+ {
+ super.onEvaluateInputViewShown();
+ // Return true regardless of the super call result to fix the keyboard not
+ // being visible on Android 16
+ return true;
+ }
+
/** Called from [onClick] attributes. */
public void launch_dictionaries_activity(View v)
{