commit 4e607d86ef0c1467cc3e806227e3be09b1f7fcc6
parent 61f4737c18e1d42e3836d24a6838286ca182091a
Author: Roger Yang <royang@mozilla.com>
Date: Wed, 17 Dec 2025 16:29:58 +0000
Bug 2006007 - Add splash screen support for Android 8.0. r=android-reviewers,kaya
Differential Revision: https://phabricator.services.mozilla.com/D276700
Diffstat:
3 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/mobile/android/fenix/app/src/main/AndroidManifest.xml b/mobile/android/fenix/app/src/main/AndroidManifest.xml
@@ -503,7 +503,7 @@
<activity
android:name=".HomeActivity"
- android:theme="@style/SplashScreen"
+ android:theme="@style/SplashScreenThemeBase"
android:exported="true"
android:configChanges="keyboard|keyboardHidden|mcc|mnc|orientation|screenSize|layoutDirection|smallestScreenSize|screenLayout"
android:launchMode="singleTask"
diff --git a/mobile/android/fenix/app/src/main/res/values-v27/styles.xml b/mobile/android/fenix/app/src/main/res/values-v27/styles.xml
@@ -27,12 +27,6 @@
<item name="android:windowLayoutInDisplayCutoutMode">default</item>
</style>
- <style name="SplashScreen" parent="SplashScreenThemeBase">
- <!-- Splash screen is animated to maximum 12 seconds -->
- <item name="windowSplashScreenAnimationDuration">12000</item>
- <item name="android:windowLayoutInDisplayCutoutMode">default</item>
- </style>
-
<style name="BottomSheetPrivate" parent="BottomSheetBasePrivate">
<item name="android:windowIsFloating">false</item>
<item name="android:statusBarColor">@android:color/transparent</item>
diff --git a/mobile/android/fenix/app/src/main/res/values/styles.xml b/mobile/android/fenix/app/src/main/res/values/styles.xml
@@ -7,6 +7,8 @@
<item name="windowSplashScreenAnimatedIcon">@drawable/ic_launcher_foreground</item>
<item name="windowSplashScreenBackground">@color/fx_mobile_splashscreen_background</item>
<item name="postSplashScreenTheme">@style/NormalTheme</item>
+ <item name="windowSplashScreenAnimationDuration">12000</item>
+ <item name="android:windowLayoutInDisplayCutoutMode" tools:targetApi="27">default</item>
</style>
<style name="NormalThemeBase" parent="Theme.Material3.DayNight.NoActionBar">