mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-26 08:27:38 +00:00
Fix locale settings
This commit is contained in:
parent
b4d948886c
commit
ec0af99a2e
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user