mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-08 06:38:34 +00:00
Replace a call to a deprecated method to update context with the new one.
Fixes #9736
This commit is contained in:
parent
4271700046
commit
5f0d384c9e
@ -20,9 +20,7 @@ public final class DynamicLanguageContextWrapper {
|
||||
final Configuration config = resources.getConfiguration();
|
||||
final Configuration newConfig = copyWithNewLocale(config, newLocale);
|
||||
|
||||
resources.updateConfiguration(newConfig, resources.getDisplayMetrics());
|
||||
|
||||
return context;
|
||||
return context.createConfigurationContext(newConfig);
|
||||
}
|
||||
|
||||
private static Configuration copyWithNewLocale(Configuration config, Locale locale) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user