Set dark theme correctly after restore

This commit is contained in:
Juha Heinanen
2026-04-30 10:25:44 +03:00
parent e1a9c61d66
commit 8389abe0bd

View File

@ -124,8 +124,10 @@ object Config {
val darkTheme = previousVariable("dark_theme")
Preferences(ctx).displayTheme = if (darkTheme == "yes") {
config = "${config}dark_theme yes\n"
BaresipService.darkTheme.value = true
AppCompatDelegate.MODE_NIGHT_YES
} else {
BaresipService.darkTheme.value = false
AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM
}