try to optout on Edge-to-Edge for android 15

This commit is contained in:
Anthony Calosa
2024-11-17 12:12:58 +08:00
parent c603bfb818
commit cca1468a85
4 changed files with 14 additions and 3 deletions

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<resources>
<style name="NormalTheme" parent="@android:style/Theme.NoTitleBar.Fullscreen">
<item name="android:windowNoTitle">true</item>
<item name="android:windowOptOutEdgeToEdgeEnforcement">true</item>
</style>
</resources>

View File

@@ -7,5 +7,10 @@
<item name="android:windowNoTitle">true</item>
<item name="android:windowIsFloating">true</item>
<item name="android:backgroundDimEnabled">false</item>
<item name="android:windowOptOutEdgeToEdgeEnforcement">true</item>
</style>
<style name="NormalTheme" parent="@android:style/Theme.NoTitleBar.Fullscreen">
<item name="android:windowNoTitle">true</item>
<item name="android:windowOptOutEdgeToEdgeEnforcement">true</item>
</style>
</resources>

View File

@@ -432,8 +432,7 @@ public class Main extends AndroidApplication {
config.useCompass = false;
config.useGyroscope = false;
config.useRotationVectorSensor = false;
// try to use immersive mode on android 13 and above
config.useImmersiveMode = Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU;
config.useImmersiveMode = false;
config.nativeLoader = () -> ReLinker.loadLibrary(getContext(), "gdx");
if (!Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())) {

View File

@@ -58,7 +58,7 @@
android:label="@string/app_name"
android:configChanges="density|fontScale|keyboard|keyboardHidden|layoutDirection|locale|mcc|mnc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode"
android:launchMode="singleInstance"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:theme="@style/NormalTheme"
android:exported="false">
</activity>
<meta-data android:name="io.sentry.dsn" android:value="https://a0b8dbad9b8a49cfa51bf65d462e8dae:b3f27d7461224cb8836eb5c6050c666c@sentry.cardforge.org/2?buffer.enabled=false" />