From 68945ff2271fafc14aec9740c45c22e23bd433de Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Sun, 9 May 2021 00:56:59 +0200 Subject: [PATCH] Restore support for Android < 12, set minimal version to 4 API level 12 is required for "subtype" code introduced in 1.7. This adds a fallback for older version, "subtype" features are not available but the keyboard is usable. Changet he minimal version to 4 to be able to query the API level. Using integer constant for versions because that's how it's presented in the documentation. Build.VERSION_CODES is WTF. --- AndroidManifest.xml | 2 +- srcs/juloo.keyboard2/Keyboard2.java | 27 ++++++++++++++++++++++++--- 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index e3881df..fa4bf3f 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -5,7 +5,7 @@ android:versionName="1.8" android:hardwareAccelerated="false"> -