fix values for theme switching

This commit is contained in:
Milos Kozak 2023-08-25 21:48:01 +02:00
parent 0766e0eb52
commit dbf1ff5ddd

View file

@ -224,6 +224,11 @@ class MainApp : DaggerApplication() {
sp.putBoolean(info.nightscout.plugins.sync.R.string.key_ns_log_app_started_event, config.APS) sp.putBoolean(info.nightscout.plugins.sync.R.string.key_ns_log_app_started_event, config.APS)
if (sp.getString(info.nightscout.configuration.R.string.key_maintenance_logs_email, "") == "logs@androidaps.org") if (sp.getString(info.nightscout.configuration.R.string.key_maintenance_logs_email, "") == "logs@androidaps.org")
sp.putString(info.nightscout.configuration.R.string.key_maintenance_logs_email, "logs@aaps.app") sp.putString(info.nightscout.configuration.R.string.key_maintenance_logs_email, "logs@aaps.app")
// fix values for theme switching
sp.putString(info.nightscout.plugins.R.string.value_dark_theme, "dark")
sp.putString(info.nightscout.plugins.R.string.value_light_theme, "light")
sp.putString(info.nightscout.plugins.R.string.value_system_theme, "system")
} }
override fun applicationInjector(): AndroidInjector<out DaggerApplication> { override fun applicationInjector(): AndroidInjector<out DaggerApplication> {