Prevent white screen when app resumes, use splash screen instead

This commit is contained in:
Sylvain Berfini 2021-06-16 10:55:22 +02:00
parent f7064b81f5
commit 755639c827
2 changed files with 2 additions and 6 deletions

View file

@ -41,7 +41,7 @@
<activity <activity
android:name=".activities.launcher.LauncherActivity" android:name=".activities.launcher.LauncherActivity"
android:noHistory="true" android:noHistory="true"
android:theme="@style/LauncherTheme"> android:theme="@style/AppTheme">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" /> <category android:name="android.intent.category.LAUNCHER" />

View file

@ -5,7 +5,7 @@
<style name="AppTheme" parent="Theme.MaterialComponents.DayNight.NoActionBar"> <style name="AppTheme" parent="Theme.MaterialComponents.DayNight.NoActionBar">
<!-- Disable animations between activities --> <!-- Disable animations between activities -->
<item name="android:windowAnimationStyle">@null</item> <item name="android:windowAnimationStyle">@null</item>
<item name="android:windowBackground">@color/white_color</item> <item name="android:windowBackground">@drawable/launch_screen</item>
<!-- Android theme override --> <!-- Android theme override -->
<item name="colorAccent">@color/primary_color</item> <item name="colorAccent">@color/primary_color</item>
@ -47,10 +47,6 @@
<item name="button_background_drawable">@drawable/button_background_light</item> <item name="button_background_drawable">@drawable/button_background_light</item>
</style> </style>
<style name="LauncherTheme" parent="@style/AppTheme">
<item name="android:windowBackground">@drawable/launch_screen</item>
</style>
<style name="FullScreenTheme" parent="@style/AppTheme"> <style name="FullScreenTheme" parent="@style/AppTheme">
<item name="android:windowTranslucentStatus">true</item> <item name="android:windowTranslucentStatus">true</item>
<item name="android:windowTranslucentNavigation">true</item> <item name="android:windowTranslucentNavigation">true</item>