Add string resource for night mode pref (#105)

This commit is contained in:
BlackyHawky 2023-08-28 21:01:06 +02:00 committed by GitHub
parent 9713c4a25a
commit 15dc59539a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View file

@ -248,7 +248,6 @@ class AppearanceSettingsFragment : SubScreenFragment(), Preference.OnPreferenceC
}
customThemeVariantNightPref = preferenceScreen.findPreference(Settings.PREF_CUSTOM_THEME_VARIANT_NIGHT) as ListPreference
customThemeVariantNightPref.apply {
title = "$title (night)" // todo: string resource
onPreferenceChangeListener = Preference.OnPreferenceChangeListener { _, value ->
// not so nice workaround, could be removed in the necessary re-work: new value seems
// to be stored only after this method call, but we update the summary and user-defined color enablement in here -> store it now