1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-09-16 09:26:28 +02:00

[android] opt out of edge-to-edge on Android >= 15 + SDK 35

This commit is contained in:
Andrey Filipenkov
2025-08-30 19:40:12 +03:00
parent 0357cfcba5
commit 5a5903bad8
4 changed files with 15 additions and 1 deletions

View File

@@ -31,7 +31,9 @@
android:label="${applicationLabel}"
android:testOnly="false"
android:supportsRtl="true"
android:usesCleartextTraffic="false">
android:usesCleartextTraffic="false"
android:theme="@style/AppTheme"
>
<activity
android:name=".ActivityLauncher"
android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation|mcc|mnc|density"

View File

@@ -148,5 +148,6 @@ def LoadSigningConfig(final signingConfigKey) {
dependencies {
implementation fileTree(dir: '../libs', include: ['*.jar', '*.aar'])
implementation 'androidx.annotation:annotation:1.7.1'
implementation('androidx.appcompat:appcompat:1.6.1')
implementation 'androidx.documentfile:documentfile:1.0.1'
}

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme" parent="@style/Theme.AppCompat.DayNight.NoActionBar">
<!-- for Android 15 + SDK 35 -->
<item name="android:windowOptOutEdgeToEdgeEnforcement">true</item>
</style>
</resources>

View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme" parent="@style/Theme.AppCompat.NoActionBar" />
</resources>