Update existing Configuration instance instead of creating new one
This commit is contained in:
parent
47b86f6146
commit
212ee91422
1 changed files with 2 additions and 2 deletions
|
@ -47,9 +47,9 @@ public class K9ActivityCommon {
|
|||
locale = new Locale(language);
|
||||
}
|
||||
|
||||
Configuration config = new Configuration();
|
||||
config.locale = locale;
|
||||
Resources resources = context.getResources();
|
||||
Configuration config = resources.getConfiguration();
|
||||
config.locale = locale;
|
||||
resources.updateConfiguration(config, resources.getDisplayMetrics());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue