Commit ec0af99a authored by topjohnwu's avatar topjohnwu

Fix locale settings

parent b4d94888
...@@ -136,6 +136,8 @@ public class MagiskManager extends Application { ...@@ -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 { ...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment