From 4785c6bf0101d3468a7278c6bec46e201c089ce1 Mon Sep 17 00:00:00 2001 From: Darcy Wong Date: Mon, 22 Jan 2024 13:56:36 +0700 Subject: [PATCH] fix(android/engine): Try other settings to fix OSK width --- android/KMAPro/kMAPro/src/main/AndroidManifest.xml | 2 ++ android/KMEA/app/src/main/AndroidManifest.xml | 1 + .../KMEA/app/src/main/java/com/keyman/engine/KMKeyboard.java | 1 + 3 files changed, 4 insertions(+) diff --git a/android/KMAPro/kMAPro/src/main/AndroidManifest.xml b/android/KMAPro/kMAPro/src/main/AndroidManifest.xml index bb392b850f9..7a90ccc957c 100644 --- a/android/KMAPro/kMAPro/src/main/AndroidManifest.xml +++ b/android/KMAPro/kMAPro/src/main/AndroidManifest.xml @@ -60,6 +60,7 @@ android:name=".SplashScreenActivity" android:exported="true" android:label="@string/app_name" + android:resizeableActivity="false" android:theme="@style/AppTheme.BrandedLaunch"> @@ -72,6 +73,7 @@ android:exported="true" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize" android:label="@string/app_name" + android:resizeableActivity="false" android:launchMode="singleTask"> diff --git a/android/KMEA/app/src/main/AndroidManifest.xml b/android/KMEA/app/src/main/AndroidManifest.xml index c4522addc4a..304d715ee75 100644 --- a/android/KMEA/app/src/main/AndroidManifest.xml +++ b/android/KMEA/app/src/main/AndroidManifest.xml @@ -15,6 +15,7 @@ diff --git a/android/KMEA/app/src/main/java/com/keyman/engine/KMKeyboard.java b/android/KMEA/app/src/main/java/com/keyman/engine/KMKeyboard.java index d17c3316971..ca2ad072165 100644 --- a/android/KMEA/app/src/main/java/com/keyman/engine/KMKeyboard.java +++ b/android/KMEA/app/src/main/java/com/keyman/engine/KMKeyboard.java @@ -186,6 +186,7 @@ public void initKMKeyboard(final Context context) { clearCache(true); getSettings().setJavaScriptEnabled(true); getSettings().setAllowFileAccess(true); + getSettings().setSupportMultipleWindows(false); // Normally, this would be true to prevent the WebView from accessing the network. // But this needs to false for sending embedded KMW crash reports to Sentry (keymanapp/keyman#3825)