mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-26 09:20:23 +00:00
Revert "Replace a call to a deprecated method to update context with the new one."
This reverts commit 5f0d384c9e
.
Introduced a bug where the system theme wasn't changing until app
restart.
This commit is contained in:
@@ -20,7 +20,9 @@ public final class DynamicLanguageContextWrapper {
|
||||
final Configuration config = resources.getConfiguration();
|
||||
final Configuration newConfig = copyWithNewLocale(config, newLocale);
|
||||
|
||||
return context.createConfigurationContext(newConfig);
|
||||
resources.updateConfiguration(newConfig, resources.getDisplayMetrics());
|
||||
|
||||
return context;
|
||||
}
|
||||
|
||||
private static Configuration copyWithNewLocale(Configuration config, Locale locale) {
|
||||
|
Reference in New Issue
Block a user