Use animated drawable on 31+ only

This commit is contained in:
Kirill Kamakin
2022-11-03 20:35:50 +01:00
parent b4071a5dae
commit db4aaf0bbd
2 changed files with 11 additions and 2 deletions

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.App.Starting" parent="Base.Theme.App.Starting">
<item name="android:windowSplashScreenAnimatedIcon">@drawable/splash_screen_animated</item>
</style>
</resources>

View File

@@ -1,10 +1,11 @@
<resources> <resources>
<style name="Theme.App.Starting" parent="Theme.SplashScreen"> <style name="Base.Theme.App.Starting" parent="Theme.SplashScreen">
<item name="windowSplashScreenBackground">@drawable/ic_splash_screen_background</item>
<item name="postSplashScreenTheme">@style/AppTheme</item> <item name="postSplashScreenTheme">@style/AppTheme</item>
</style> </style>
<style name="Theme.App.Starting" parent="Base.Theme.App.Starting" />
<style name="AppTheme" parent="Theme.Material3.Light.NoActionBar"> <style name="AppTheme" parent="Theme.Material3.Light.NoActionBar">
<item name="colorPrimary">@color/md_theme_light_primary</item> <item name="colorPrimary">@color/md_theme_light_primary</item>
<item name="colorOnPrimary">@color/md_theme_light_onPrimary</item> <item name="colorOnPrimary">@color/md_theme_light_onPrimary</item>