1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-18 21:28:54 +00:00

Fixed language override on older Android versions

This commit is contained in:
M66B 2021-07-18 19:35:55 +02:00
parent 5504b93d05
commit 620dea7035

View file

@ -73,6 +73,8 @@ public class ApplicationEx extends Application
EntityLog.log(context, "Set language=" + language + " locale=" + locale);
Locale.setDefault(locale);
Configuration config = new Configuration();
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q)
config.setTo(context.getResources().getConfiguration());
config.setLocale(locale);
return context.createConfigurationContext(config);
}