Assigned
Status Update
Comments
ca...@google.com <ca...@google.com>
er...@gmail.com <er...@gmail.com> #2
Forgot to note the environment.
This crash occurs on only API 21.
This crash occurs on only API 21.
Description
Component used: androidx.appcompat
Version used: 1.6.1
Devices/Android versions reproduced on: all
With the new per-app language support, we can declare our supported languages in a (manually or automatically created)
locale_config.xml
. Thanks to AppCompat, we can make use of this on API 12 and below.However, in order make use of this by providing an in-app language picker, we need the list of supported languages for the app in question. On API 13 or later, this can be obtained with
LocaleConfig(context).supportedLocales
.Unfortunately, AppCompat does not seem to provide an equivalent for API 12 and below, so we are required to manually parse
locale_config.xml
or use hardcoded values, both of which are less than optimal.