mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-26 20:47:39 +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);
|
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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user