Switch per language support to manual
The current automatic support setup has a bug where the app language will change for users with Android 15 when there is a configuration change like rotating a screen. It seems that that using generateLocaleConfig on AGP 8.8+ triggers a bug in Android 15 (android:defaultLocale) which causes this issue
This commit is contained in:
@@ -26,8 +26,72 @@ android {
|
||||
arg('room.generateKotlin', 'true')
|
||||
}
|
||||
androidResources {
|
||||
generateLocaleConfig true
|
||||
generateLocaleConfig false
|
||||
}
|
||||
resourceConfigurations += [
|
||||
"en",
|
||||
"ab",
|
||||
"ar",
|
||||
"arq",
|
||||
"as",
|
||||
"be",
|
||||
"bn",
|
||||
"ca",
|
||||
"cs",
|
||||
"de",
|
||||
"el",
|
||||
"en-rGB",
|
||||
"enm",
|
||||
"es",
|
||||
"et",
|
||||
"eu",
|
||||
"fa",
|
||||
"fi",
|
||||
"fil",
|
||||
"fr",
|
||||
"frp",
|
||||
"gu",
|
||||
"hi",
|
||||
"hr",
|
||||
"hu",
|
||||
"in",
|
||||
"it",
|
||||
"iw",
|
||||
"ja",
|
||||
"kk",
|
||||
"km",
|
||||
"ko",
|
||||
"lt",
|
||||
"lv",
|
||||
"lzh",
|
||||
"ml",
|
||||
"ms",
|
||||
"my",
|
||||
"nb-rNO",
|
||||
"ne",
|
||||
"nn",
|
||||
"or",
|
||||
"pa",
|
||||
"pa-rPK",
|
||||
"pl",
|
||||
"pt",
|
||||
"pt-rBR",
|
||||
"ro",
|
||||
"ru",
|
||||
"si",
|
||||
"sr",
|
||||
"sv",
|
||||
"ta",
|
||||
"th",
|
||||
"tr",
|
||||
"uk",
|
||||
"vi",
|
||||
"zh-rCN",
|
||||
"zh-rTW",
|
||||
// Specific BCP 47 locales
|
||||
"b+zh+Hans+MO",
|
||||
"b+zh+Hant+MO"
|
||||
]
|
||||
}
|
||||
buildTypes {
|
||||
debug {
|
||||
|
||||
Reference in New Issue
Block a user