From ec0af99a2e63a8773777457d118b40046ea133bb Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Sun, 3 Sep 2017 21:12:09 +0800 Subject: [PATCH] Fix locale settings --- app/src/main/java/com/topjohnwu/magisk/MagiskManager.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/topjohnwu/magisk/MagiskManager.java b/app/src/main/java/com/topjohnwu/magisk/MagiskManager.java index 1026be26c..e05a2e71b 100644 --- a/app/src/main/java/com/topjohnwu/magisk/MagiskManager.java +++ b/app/src/main/java/com/topjohnwu/magisk/MagiskManager.java @@ -136,6 +136,8 @@ public class MagiskManager extends Application { prefs = PreferenceManager.getDefaultSharedPreferences(this); suDB = new SuDatabaseHelper(this); repoDB = new RepoDatabaseHelper(this); + defaultLocale = Locale.getDefault(); + setLocale(); loadConfig(); } @@ -153,10 +155,6 @@ public class MagiskManager extends Application { } public void loadConfig() { - // Locale - defaultLocale = Locale.getDefault(); - setLocale(); - isDarkTheme = prefs.getBoolean("dark_theme", false); if (BuildConfig.DEBUG) { devLogging = prefs.getBoolean("developer_logging", false);