Set dark theme correctly after restore
This commit is contained in:
@@ -124,8 +124,10 @@ object Config {
|
|||||||
val darkTheme = previousVariable("dark_theme")
|
val darkTheme = previousVariable("dark_theme")
|
||||||
Preferences(ctx).displayTheme = if (darkTheme == "yes") {
|
Preferences(ctx).displayTheme = if (darkTheme == "yes") {
|
||||||
config = "${config}dark_theme yes\n"
|
config = "${config}dark_theme yes\n"
|
||||||
|
BaresipService.darkTheme.value = true
|
||||||
AppCompatDelegate.MODE_NIGHT_YES
|
AppCompatDelegate.MODE_NIGHT_YES
|
||||||
} else {
|
} else {
|
||||||
|
BaresipService.darkTheme.value = false
|
||||||
AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM
|
AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user