Fix color issues when the system theme is changed (#2738)

This commit is contained in:
Benoit Marty 2021-04-20 16:04:59 +02:00
parent 19427fbfec
commit ef1ed28ac5
2 changed files with 3 additions and 0 deletions

View File

@ -9,6 +9,7 @@ Improvements 🙌:
Bugfix 🐛:
- Message states cosmetic changes (#3007)
- Fix color issues when the system theme is changed (#2738)
Translations 🗣:
-

View File

@ -39,6 +39,8 @@ class VectorConfiguration @Inject constructor(private val context: Context) {
Timber.v("## onConfigurationChanged(): restore the expected value ${VectorLocale.applicationLocale}")
Locale.setDefault(VectorLocale.applicationLocale)
}
// Night mode may have changed
ThemeUtils.init(context)
}
fun applyToApplicationContext() {