Merge pull request #3208 from vector-im/feature/bma/fix_theme_switch

Fix color issues when the system theme is changed (#2738)
This commit is contained in:
Benoit Marty 2021-04-20 19:53:27 +02:00 committed by GitHub
commit 215166ab32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

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

View File

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