[Scummvm-git-logs] scummvm master -> a674b65c95e26f5f9d0a75ba41cc861d25a9b45b

antoniou79 noreply at scummvm.org
Sat Aug 12 17:35:09 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
a674b65c95 ANDROID: Support connection change for some bluetooth keyboards


Commit: a674b65c95e26f5f9d0a75ba41cc861d25a9b45b
    https://github.com/scummvm/scummvm/commit/a674b65c95e26f5f9d0a75ba41cc861d25a9b45b
Author: antoniou79 (a.antoniou79 at gmail.com)
Date: 2023-08-12T20:34:58+03:00

Commit Message:
ANDROID: Support connection change for some bluetooth keyboards

Some bluetooth keyboards also need "navigation" supported as configuration change

Tested with a new Lamtech bluetooth (BLE5) keyboard and also this is suggested here as well:
https://stackoverflow.com/a/27238892

Changed paths:
    backends/platform/android/org/scummvm/scummvm/SplashActivity.java
    dists/android/AndroidManifest.xml


diff --git a/backends/platform/android/org/scummvm/scummvm/SplashActivity.java b/backends/platform/android/org/scummvm/scummvm/SplashActivity.java
index d14c3e00ae7..df2a4dfc0df 100644
--- a/backends/platform/android/org/scummvm/scummvm/SplashActivity.java
+++ b/backends/platform/android/org/scummvm/scummvm/SplashActivity.java
@@ -10,6 +10,7 @@ import android.os.Bundle;
 import android.util.Log;
 import android.view.View;
 import android.widget.Toast;
+import android.content.res.Configuration;
 
 import androidx.annotation.NonNull;
 
@@ -104,4 +105,9 @@ public class SplashActivity extends Activity {
 		}
 	}
 
+	@Override
+	public void onConfigurationChanged(@NonNull Configuration newConfig) {
+		super.onConfigurationChanged(newConfig);
+	}
+
 }
diff --git a/dists/android/AndroidManifest.xml b/dists/android/AndroidManifest.xml
index 7b30810abc8..11e47bf336b 100644
--- a/dists/android/AndroidManifest.xml
+++ b/dists/android/AndroidManifest.xml
@@ -46,7 +46,7 @@
 			android:name=".SplashActivity"
 			android:exported="true"
 			android:banner="@drawable/leanback_icon"
-			android:configChanges="orientation|keyboard|keyboardHidden|screenSize|smallestScreenSize|screenLayout"
+			android:configChanges="orientation|keyboard|keyboardHidden|navigation|screenSize|smallestScreenSize|screenLayout"
 			android:resizeableActivity="true"
 			android:theme="@style/SplashTheme"
 			android:windowSoftInputMode="adjustResize">
@@ -61,7 +61,7 @@
 			android:name=".ScummVMActivity"
 			android:exported="false"
 			android:banner="@drawable/leanback_icon"
-			android:configChanges="orientation|keyboard|keyboardHidden|screenSize|smallestScreenSize|screenLayout"
+			android:configChanges="orientation|keyboard|keyboardHidden|navigation|screenSize|smallestScreenSize|screenLayout"
 			android:resizeableActivity="true"
 			android:launchMode="singleInstance"
 			android:theme="@style/AppTheme"




More information about the Scummvm-git-logs mailing list