Fix locale settings

This commit is contained in:
topjohnwu 2017-09-03 21:12:09 +08:00
parent b4d948886c
commit ec0af99a2e

View File

@ -136,6 +136,8 @@ public class MagiskManager extends Application {
prefs = PreferenceManager.getDefaultSharedPreferences(this); prefs = PreferenceManager.getDefaultSharedPreferences(this);
suDB = new SuDatabaseHelper(this); suDB = new SuDatabaseHelper(this);
repoDB = new RepoDatabaseHelper(this); repoDB = new RepoDatabaseHelper(this);
defaultLocale = Locale.getDefault();
setLocale();
loadConfig(); loadConfig();
} }
@ -153,10 +155,6 @@ public class MagiskManager extends Application {
} }
public void loadConfig() { public void loadConfig() {
// Locale
defaultLocale = Locale.getDefault();
setLocale();
isDarkTheme = prefs.getBoolean("dark_theme", false); isDarkTheme = prefs.getBoolean("dark_theme", false);
if (BuildConfig.DEBUG) { if (BuildConfig.DEBUG) {
devLogging = prefs.getBoolean("developer_logging", false); devLogging = prefs.getBoolean("developer_logging", false);