Skip to content

Commit 677d7de

Browse files
authored
Merge pull request libre-tube#7224 from Bnyro/master
fix: regressions from recent splash screen addition for Android < 11
2 parents 905f466 + fe33081 commit 677d7de

4 files changed

Lines changed: 22 additions & 8 deletions

File tree

app/src/main/AndroidManifest.xml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
android:requestLegacyExternalStorage="true"
3333
android:roundIcon="@mipmap/ic_launcher_round"
3434
android:supportsRtl="true"
35-
android:theme="@style/StartupTheme"
35+
android:theme="@style/BaseTheme"
3636
tools:targetApi="tiramisu">
3737

3838
<activity
@@ -126,6 +126,7 @@
126126
android:launchMode="singleTask"
127127
android:screenOrientation="locked"
128128
android:supportsPictureInPicture="true"
129+
android:theme="@style/SplashScreenTheme"
129130
android:windowSoftInputMode="adjustPan">
130131
<!-- allow being recognized as a music player -->
131132
<intent-filter>
@@ -143,6 +144,7 @@
143144
android:roundIcon="@mipmap/ic_launcher_round"
144145
android:supportsPictureInPicture="true"
145146
android:targetActivity=".ui.activities.MainActivity"
147+
android:theme="@style/SplashScreenTheme"
146148
android:windowSoftInputMode="adjustPan">
147149
<intent-filter>
148150
<action android:name="android.intent.action.MAIN" />
@@ -161,6 +163,7 @@
161163
android:roundIcon="@mipmap/ic_gradient_round"
162164
android:supportsPictureInPicture="true"
163165
android:targetActivity=".ui.activities.MainActivity"
166+
android:theme="@style/SplashScreenTheme"
164167
android:windowSoftInputMode="adjustPan">
165168
<intent-filter>
166169
<action android:name="android.intent.action.MAIN" />
@@ -180,6 +183,7 @@
180183
android:roundIcon="@mipmap/ic_launcher_light_round"
181184
android:supportsPictureInPicture="true"
182185
android:targetActivity=".ui.activities.MainActivity"
186+
android:theme="@style/SplashScreenTheme"
183187
android:windowSoftInputMode="adjustPan">
184188
<intent-filter>
185189
<action android:name="android.intent.action.MAIN" />
@@ -199,6 +203,7 @@
199203
android:roundIcon="@mipmap/ic_fire_round"
200204
android:supportsPictureInPicture="true"
201205
android:targetActivity=".ui.activities.MainActivity"
206+
android:theme="@style/SplashScreenTheme"
202207
android:windowSoftInputMode="adjustPan">
203208
<intent-filter>
204209
<action android:name="android.intent.action.MAIN" />
@@ -218,6 +223,7 @@
218223
android:roundIcon="@mipmap/ic_flame_round"
219224
android:supportsPictureInPicture="true"
220225
android:targetActivity=".ui.activities.MainActivity"
226+
android:theme="@style/SplashScreenTheme"
221227
android:windowSoftInputMode="adjustPan">
222228
<intent-filter>
223229
<action android:name="android.intent.action.MAIN" />
@@ -237,6 +243,7 @@
237243
android:roundIcon="@mipmap/ic_shaped_round"
238244
android:supportsPictureInPicture="true"
239245
android:targetActivity=".ui.activities.MainActivity"
246+
android:theme="@style/SplashScreenTheme"
240247
android:windowSoftInputMode="adjustPan">
241248
<intent-filter>
242249
<action android:name="android.intent.action.MAIN" />
@@ -254,6 +261,7 @@
254261
android:roundIcon="@mipmap/ic_torch_round"
255262
android:supportsPictureInPicture="true"
256263
android:targetActivity=".ui.activities.MainActivity"
264+
android:theme="@style/SplashScreenTheme"
257265
android:windowSoftInputMode="adjustPan">
258266
<intent-filter>
259267
<action android:name="android.intent.action.MAIN" />
@@ -273,6 +281,7 @@
273281
android:roundIcon="@mipmap/ic_legacy_round"
274282
android:supportsPictureInPicture="true"
275283
android:targetActivity=".ui.activities.MainActivity"
284+
android:theme="@style/SplashScreenTheme"
276285
android:windowSoftInputMode="adjustPan">
277286
<intent-filter>
278287
<action android:name="android.intent.action.MAIN" />
@@ -292,6 +301,7 @@
292301
android:roundIcon="@mipmap/ic_bird_round"
293302
android:supportsPictureInPicture="true"
294303
android:targetActivity=".ui.activities.MainActivity"
304+
android:theme="@style/SplashScreenTheme"
295305
android:windowSoftInputMode="adjustPan">
296306
<intent-filter>
297307
<action android:name="android.intent.action.MAIN" />
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
3-
<style name="StartupTheme" parent="Theme.SplashScreen">
4-
<item name="windowSplashScreenAnimatedIcon">@drawable/splash_anim</item>
5-
<item name="postSplashScreenTheme">@style/BaseTheme</item>
3+
<style name="SplashScreenTheme" parent="BaseTheme">
4+
<item name="colorSurface">@android:color/black</item>
5+
<item name="android:colorBackground">@android:color/black</item>
6+
7+
<item name="android:windowSplashScreenAnimatedIcon">@drawable/splash_anim</item>
68
</style>
79
</resources>
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
3-
<style name="StartupTheme" parent="Theme.SplashScreen">
4-
<item name="windowSplashScreenAnimatedIcon">@drawable/splash_anim</item>
5-
<item name="postSplashScreenTheme">@style/BaseTheme</item>
3+
<style name="SplashScreenTheme" parent="BaseTheme">
4+
<item name="colorSurface">@android:color/white</item>
5+
<item name="android:colorBackground">@android:color/white</item>
6+
7+
<item name="android:windowSplashScreenAnimatedIcon">@drawable/splash_anim</item>
68
</style>
79
</resources>

app/src/main/res/values/themes.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
</style>
1717

18-
<style name="StartupTheme" parent="Theme.SplashScreen">
18+
<style name="SplashScreenTheme" parent="Theme.SplashScreen">
1919

2020
<item name="windowSplashScreenAnimatedIcon">@drawable/splash_icon</item>
2121
<item name="postSplashScreenTheme">@style/BaseTheme</item>

0 commit comments

Comments
 (0)