I've implemented dark theme in my application. Everything works fine, when system is on dark mode the application is on dark mode and vice versa.
The problem is Branded Launch.I have 2 drawable files for it:
Dark:
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" android:opacity="opaque">
<item android:drawable="@color/splashColorDark"/>
<item>
<bitmap
android:src="@drawable/logo_branded"
android:mipMap="true"
android:gravity="center"/>
</item>
</layer-list>
And light:
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" android:opacity="opaque">
<item android:drawable="@color/splashColorLight"/>
<item>
<bitmap
android:src="@drawable/logo_branded"
android:mipMap="true"
android:gravity="center"/>
</item>
</layer-list>
In order to use branded launch I added this:
android:theme="@style/AppTheme.BrandedLaunchLight"
in my AndroidManifest.xml
Doing this obviously I'm not able to set dark branded launch when dark mode is active. What should I do?