fix: regressions from recent splash screen addition for Android < 11

This commit is contained in:
Bnyro 2025-03-19 20:23:45 +01:00
parent 905f466ae6
commit fe330814ac
No known key found for this signature in database
4 changed files with 22 additions and 8 deletions

View File

@ -32,7 +32,7 @@
android:requestLegacyExternalStorage="true"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/StartupTheme"
android:theme="@style/BaseTheme"
tools:targetApi="tiramisu">
<activity
@ -126,6 +126,7 @@
android:launchMode="singleTask"
android:screenOrientation="locked"
android:supportsPictureInPicture="true"
android:theme="@style/SplashScreenTheme"
android:windowSoftInputMode="adjustPan">
<!-- allow being recognized as a music player -->
<intent-filter>
@ -143,6 +144,7 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsPictureInPicture="true"
android:targetActivity=".ui.activities.MainActivity"
android:theme="@style/SplashScreenTheme"
android:windowSoftInputMode="adjustPan">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
@ -161,6 +163,7 @@
android:roundIcon="@mipmap/ic_gradient_round"
android:supportsPictureInPicture="true"
android:targetActivity=".ui.activities.MainActivity"
android:theme="@style/SplashScreenTheme"
android:windowSoftInputMode="adjustPan">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
@ -180,6 +183,7 @@
android:roundIcon="@mipmap/ic_launcher_light_round"
android:supportsPictureInPicture="true"
android:targetActivity=".ui.activities.MainActivity"
android:theme="@style/SplashScreenTheme"
android:windowSoftInputMode="adjustPan">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
@ -199,6 +203,7 @@
android:roundIcon="@mipmap/ic_fire_round"
android:supportsPictureInPicture="true"
android:targetActivity=".ui.activities.MainActivity"
android:theme="@style/SplashScreenTheme"
android:windowSoftInputMode="adjustPan">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
@ -218,6 +223,7 @@
android:roundIcon="@mipmap/ic_flame_round"
android:supportsPictureInPicture="true"
android:targetActivity=".ui.activities.MainActivity"
android:theme="@style/SplashScreenTheme"
android:windowSoftInputMode="adjustPan">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
@ -237,6 +243,7 @@
android:roundIcon="@mipmap/ic_shaped_round"
android:supportsPictureInPicture="true"
android:targetActivity=".ui.activities.MainActivity"
android:theme="@style/SplashScreenTheme"
android:windowSoftInputMode="adjustPan">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
@ -254,6 +261,7 @@
android:roundIcon="@mipmap/ic_torch_round"
android:supportsPictureInPicture="true"
android:targetActivity=".ui.activities.MainActivity"
android:theme="@style/SplashScreenTheme"
android:windowSoftInputMode="adjustPan">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
@ -273,6 +281,7 @@
android:roundIcon="@mipmap/ic_legacy_round"
android:supportsPictureInPicture="true"
android:targetActivity=".ui.activities.MainActivity"
android:theme="@style/SplashScreenTheme"
android:windowSoftInputMode="adjustPan">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
@ -292,6 +301,7 @@
android:roundIcon="@mipmap/ic_bird_round"
android:supportsPictureInPicture="true"
android:targetActivity=".ui.activities.MainActivity"
android:theme="@style/SplashScreenTheme"
android:windowSoftInputMode="adjustPan">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

View File

@ -1,7 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="StartupTheme" parent="Theme.SplashScreen">
<item name="windowSplashScreenAnimatedIcon">@drawable/splash_anim</item>
<item name="postSplashScreenTheme">@style/BaseTheme</item>
<style name="SplashScreenTheme" parent="BaseTheme">
<item name="colorSurface">@android:color/black</item>
<item name="android:colorBackground">@android:color/black</item>
<item name="android:windowSplashScreenAnimatedIcon">@drawable/splash_anim</item>
</style>
</resources>

View File

@ -1,7 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="StartupTheme" parent="Theme.SplashScreen">
<item name="windowSplashScreenAnimatedIcon">@drawable/splash_anim</item>
<item name="postSplashScreenTheme">@style/BaseTheme</item>
<style name="SplashScreenTheme" parent="BaseTheme">
<item name="colorSurface">@android:color/white</item>
<item name="android:colorBackground">@android:color/white</item>
<item name="android:windowSplashScreenAnimatedIcon">@drawable/splash_anim</item>
</style>
</resources>

View File

@ -15,7 +15,7 @@
</style>
<style name="StartupTheme" parent="Theme.SplashScreen">
<style name="SplashScreenTheme" parent="Theme.SplashScreen">
<item name="windowSplashScreenAnimatedIcon">@drawable/splash_icon</item>
<item name="postSplashScreenTheme">@style/BaseTheme</item>