Follow system locale pt.2: immediately apply it

This commit is contained in:
SpiritCroc 2020-05-15 10:46:09 +02:00
parent 80deb804d5
commit bce7845f9b

View File

@ -38,7 +38,7 @@ class VectorConfiguration @Inject constructor(private val context: Context) {
if (Locale.getDefault().toString() != VectorLocale.applicationLocale.toString()) {
Timber.v("## onConfigurationChanged(): the locale has been updated to ${Locale.getDefault()}")
Timber.v("## onConfigurationChanged(): restore the expected value ${VectorLocale.applicationLocale}")
updateApplicationSettings(VectorLocale.applicationLocale,
updateApplicationSettings(Locale.getDefault(),
FontScale.getFontScalePrefValue(context),
ThemeUtils.getApplicationTheme(context))
}