Skip to content

Commit

Permalink
Merge pull request #419 from inson1/Fix-Xiaomi-devices-with-force-Dar…
Browse files Browse the repository at this point in the history
…k-theme

Fix Xiaomi devices with force Dark theme
  • Loading branch information
Darkempire78 authored Mar 10, 2024
2 parents d0eba2f + a925f6c commit 71fcf51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/src/main/res/values-night/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<style name="AppTheme" parent="AppTheme.Base">
<item name="android:windowLightStatusBar" tools:ignore="NewApi">false</item>
<item name="android:windowLightNavigationBar" tools:ignore="NewApi">false</item>
<item name="android:forceDarkAllowed" tools:targetApi="q">false</item>
</style>

<style name="MaterialYouTheme" parent="AppTheme">
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<style name="AppTheme" parent="AppTheme.Base">
<item name="android:windowLightStatusBar" tools:ignore="NewApi">true</item>
<item name="android:windowLightNavigationBar" tools:ignore="NewApi">true</item>
<item name="android:forceDarkAllowed" tools:targetApi="q">false</item>
<!--<item name="materialSwitchStyle">@style/Widget.App.Switch</item>-->
</style>

Expand Down

0 comments on commit 71fcf51

Please sign in to comment.