mirror of https://github.com/M66B/FairEmail.git
Fixed system theme with locale
This commit is contained in:
parent
5b4a5eab58
commit
9fbb534da4
|
@ -68,7 +68,7 @@ public class ApplicationEx extends Application
|
||||||
if (language != null) {
|
if (language != null) {
|
||||||
Locale locale = Locale.forLanguageTag(language);
|
Locale locale = Locale.forLanguageTag(language);
|
||||||
Locale.setDefault(locale);
|
Locale.setDefault(locale);
|
||||||
Configuration config = new Configuration(context.getResources().getConfiguration());
|
Configuration config = new Configuration();
|
||||||
config.setLocale(locale);
|
config.setLocale(locale);
|
||||||
return context.createConfigurationContext(config);
|
return context.createConfigurationContext(config);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue