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
This commit is contained in:
antoniou79 2023-08-12 20:32:20 +03:00
parent d07c7fd391
commit a674b65c95
2 changed files with 8 additions and 2 deletions

View File

@ -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);
}
}

View File

@ -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"