Update existing Configuration instance instead of creating new one

This commit is contained in:
cketti 2017-02-25 16:25:21 +01:00
parent 47b86f6146
commit 212ee91422

View file

@ -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());
}