diff --git a/app/src/main/kotlin/com/tutpro/baresip/Config.kt b/app/src/main/kotlin/com/tutpro/baresip/Config.kt index 602f13b8..efbedab2 100644 --- a/app/src/main/kotlin/com/tutpro/baresip/Config.kt +++ b/app/src/main/kotlin/com/tutpro/baresip/Config.kt @@ -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 }