Fix locale deprecation

This commit is contained in:
Mygod
2023-02-11 15:03:38 -05:00
parent 15c3c5a6d7
commit 494d501ec9
5 changed files with 5 additions and 5 deletions

View File

@@ -69,6 +69,6 @@ class UpstreamsPreference(context: Context, attrs: AttributeSet) : Preference(co
private fun onUpdate() = (context as LifecycleOwner).lifecycleScope.launchWhenStarted {
summary = context.getText(R.string.settings_service_upstream_monitor_summary).format(
context.resources.configuration.locale, primary.charSequence, fallback.charSequence)
context.resources.configuration.locales[0], primary.charSequence, fallback.charSequence)
}
}