I'm using default piece of code in all my projects, in BaseActivity in onCreate()
:
Locale locale = new Locale("ru");
Locale.setDefault(locale);
Configuration config = new Configuration();
config.locale = locale;
context.getApplicationContext().getResources().updateConfiguration(config, context.getResources().getDisplayMetrics());
I tried put here like new Locale("ru", "RU")
- no difference. The weird part that this problem occurs only in android 5.02 NOT 5.0,5.01. Also there is exist such problem so my assumptions there are were significant changes in locale api.
EDIT: I'm restarting whole app after changing locale in settings