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:
@@ -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"
|
||||
|
@@ -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'
|
||||
}
|
||||
|
7
android/vcmi-app/src/main/res/values-v21/styles.xml
Normal file
7
android/vcmi-app/src/main/res/values-v21/styles.xml
Normal 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>
|
4
android/vcmi-app/src/main/res/values/styles.xml
Normal file
4
android/vcmi-app/src/main/res/values/styles.xml
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<style name="AppTheme" parent="@style/Theme.AppCompat.NoActionBar" />
|
||||
</resources>
|
Reference in New Issue
Block a user