mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-05 21:20:45 +00:00
For #23104: Don't adjust the theme for the default wallpaper.
This commit is contained in:
parent
7582bce890
commit
28928e4bdd
@ -47,8 +47,10 @@ class WallpaperManager(private val settings: Settings) {
|
||||
AppCompatDelegate.MODE_NIGHT_NO
|
||||
}
|
||||
} else {
|
||||
updateThemePreference(followDeviceTheme = true)
|
||||
AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM
|
||||
// For the default wallpaper, there is not need to adjust the theme,
|
||||
// as we want to allow users decide which theme they want to have.
|
||||
// The default wallpaper adapts to whichever theme the user has.
|
||||
return
|
||||
}
|
||||
|
||||
if (AppCompatDelegate.getDefaultNightMode() != mode) {
|
||||
@ -59,12 +61,10 @@ class WallpaperManager(private val settings: Settings) {
|
||||
|
||||
private fun updateThemePreference(
|
||||
useDarkTheme: Boolean = false,
|
||||
useLightTheme: Boolean = false,
|
||||
followDeviceTheme: Boolean = false
|
||||
useLightTheme: Boolean = false
|
||||
) {
|
||||
settings.shouldUseDarkTheme = useDarkTheme
|
||||
settings.shouldUseLightTheme = useLightTheme
|
||||
settings.shouldFollowDeviceTheme = followDeviceTheme
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user