I have created a launch screen using Jetpack splash screen API everything is working fine except the windowSplashScreenAnimatedIcon
is not getting displayed when the dark mode is turned on.
Even though I'm using the material day light theme, forcefully opted light as default theme (AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO)
)
I 'm aware of the considerations for the app icon detailed on the google developer portal,
<style name="Theme.App.Starting" parent="Theme.SplashScreen">
<item name="windowSplashScreenBackground">@color/white</item>
<item name="windowSplashScreenAnimatedIcon">@drawable/splash_content</item>
<item name="windowSplashScreenAnimationDuration">500</item>
<item name="postSplashScreenTheme">@style/Theme.Main</item>
</style>
Any help will be really appreciated.
Thank you