Skip to content

Commit 5e8430d

Browse files
committed
Try fixing forced dark mode issues on MIUI on Android 10
1 parent 516fc72 commit 5e8430d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44
~ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
55
~ Please see LICENSE files in the repository root for full details.
66
-->
7-
<resources>
7+
<resources xmlns:tools="http://schemas.android.com/tools">
88
<style name="Theme.ElementX.Splash" parent="Theme.SplashScreen">
99
<item name="windowSplashScreenBackground">@color/splashscreen_bg_light</item>
1010
<item name="windowSplashScreenAnimatedIcon">@drawable/transparent</item>
1111
<item name="postSplashScreenTheme">@style/Theme.ElementX</item>
1212
</style>
13-
<style name="Theme.ElementX" parent="Theme.Material3.Light.NoActionBar" />
13+
<style name="Theme.ElementX" parent="Theme.Material3.Light.NoActionBar">
14+
<item name="android:forceDarkAllowed" tools:targetApi="q">false</item>
15+
</style>
1416
</resources>

0 commit comments

Comments
 (0)