diff options
author | Sam Lantinga <slouken@libsdl.org> | 2019-04-24 12:53:15 -0700 |
---|---|---|
committer | Sam Lantinga <slouken@libsdl.org> | 2019-04-24 12:53:15 -0700 |
commit | bf8fe0e3b9907848e0c2297ca5d5512ec127d780 (patch) | |
tree | 789f20374a86f895835c48f821b8b8901be52898 | |
parent | 077fda212ad732161ddeee2ac81ab4cf80f617f0 (diff) |
Fixed bug 4566 - Hot-plugging Bluetooth controller causes force-quit on Android
Anthony @ POW Games
I tried adding different configChanges and sure enough, "navigation" worked! Now bluetooth controllers hot-plug nicely. So shall we add it as a default to the AndroidManifest.xml?
Funny that this is how this activity is described:
"navigation" The navigation type (trackball/dpad) has changed. (This should never normally happen.)
I think the reason behind this is because the bluetooth game controller I was testing doubles-up as a keyboard, which probably comes with a DPAD? It's a MOCUTE-032X_B63-88CE
-rw-r--r-- | android-project/app/src/main/AndroidManifest.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/android-project/app/src/main/AndroidManifest.xml b/android-project/app/src/main/AndroidManifest.xml index e994e46b7e..bcd2ede383 100644 --- a/android-project/app/src/main/AndroidManifest.xml +++ b/android-project/app/src/main/AndroidManifest.xml @@ -56,7 +56,7 @@ android:label="@string/app_name" android:alwaysRetainTaskState="true" android:launchMode="singleInstance" - android:configChanges="keyboard|keyboardHidden|orientation|screenSize" + android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|keyboard|keyboardHidden|navigation" > <intent-filter> <action android:name="android.intent.action.MAIN" /> |