From 212ee9142237b9bc4fb8283290f2cb12d6c5f151 Mon Sep 17 00:00:00 2001 From: cketti Date: Sat, 25 Feb 2017 16:25:21 +0100 Subject: [PATCH] Update existing Configuration instance instead of creating new one --- .../src/main/java/com/fsck/k9/activity/K9ActivityCommon.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/k9mail/src/main/java/com/fsck/k9/activity/K9ActivityCommon.java b/k9mail/src/main/java/com/fsck/k9/activity/K9ActivityCommon.java index bc04a3189..7698983a8 100644 --- a/k9mail/src/main/java/com/fsck/k9/activity/K9ActivityCommon.java +++ b/k9mail/src/main/java/com/fsck/k9/activity/K9ActivityCommon.java @@ -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()); }