Assigned
Status Update
Comments
sh...@gmail.com <sh...@gmail.com> #2
Forgot to note the environment.
This crash occurs on only API 21.
This crash occurs on only API 21.
sh...@gmail.com <sh...@gmail.com> #3
This crash occurs on API 22 and 23 when the user doesn't have Google Play installed. Related discussions: https://stackoverflow.com/q/41025200/842697
Description
Component used: androidx.appcompat:appcompat Version used: 1.6.0 Devices/Android versions reproduced on: Android 13, One UI 5.0
I've been following the docs on per-app language preferences.
At some point I've added my locales in locales_config.xml in a file that looks like this
Then when going to settings > Apps > My app > (Defaults) Language >
I can select for example Norwegian, but then I get the option for
Svalvard og Jan Mayen
as a region, resulting in my locale actually then beingnb-SJ
instead ofnv-NO
when fetching it from for exampleConfigurationCompat.getLocales(LocalConfiguration.current).get(0).toString()
.This is a problem in my case due to the fact that I use this locale to send it over to the backend, and sending the wrong region is in fact a problem.
This will force me to not allow the users to use the settings screen to edit the language, but only show them an in-app version which will not let them select such regions. I think optimally this would be better fixed by giving the users their expected setting of changing the language in the app settings, while also not giving them more options than what I want to give them.
I hope what I am describing makes sense, and if there is a way to achieve what I am going after I'd love to hear about it.