I added support per app language to my app, the android 13 feature, now it is both English and Russian. I can change the app language from settings and no need to change the device language. Now for analytics purposes, I need to know the app language and the device language. But if my device is in English and the app is in Russian, I always receive Russian -
Resources.getSystem().configuration.locales.get(0).language - ru
context.resources.configuration.locales[0].language - ru
Locale.getDefault().language - ru
I expect to receive en from
Resources.getSystem().configuration.locales.get(0).language
and ru from
context.resources.configuration.locales[0].language
I will be glad for any help