support per app language

This commit is contained in:
BinTianqi
2024-02-25 00:49:31 +08:00
parent 77233bec0d
commit 9873ef7dcd
3 changed files with 5 additions and 1 deletions

View File

@@ -48,6 +48,9 @@ android {
excludes += "/META-INF/{AL2.0,LGPL2.1}" excludes += "/META-INF/{AL2.0,LGPL2.1}"
} }
} }
androidResources {
generateLocaleConfig = true
}
} }
dependencies { dependencies {

View File

@@ -50,7 +50,7 @@ fun ShizukuActivate(){
Column(modifier = Modifier.verticalScroll(rememberScrollState())){ Column(modifier = Modifier.verticalScroll(rememberScrollState())){
var outputText by remember{mutableStateOf("")} var outputText by remember{mutableStateOf("")}
if(VERSION.SDK_INT>=30&&isProfileOwner(myDpm)&&myDpm.isManagedProfile(myComponent)){ if(VERSION.SDK_INT>=30&&isProfileOwner(myDpm)&&myDpm.isManagedProfile(myComponent)){
Row(modifier = sections(colorScheme.errorContainer), horizontalArrangement = Arrangement.SpaceBetween, verticalAlignment = Alignment.CenterVertically){ Row(modifier = sections(colorScheme.errorContainer), verticalAlignment = Alignment.CenterVertically){
Icon(imageVector = Icons.Rounded.Warning, contentDescription = null, tint = colorScheme.onErrorContainer) Icon(imageVector = Icons.Rounded.Warning, contentDescription = null, tint = colorScheme.onErrorContainer)
Text(text = "暂不支持在工作资料中使用Shizuku", style = bodyTextStyle, color = colorScheme.onErrorContainer) Text(text = "暂不支持在工作资料中使用Shizuku", style = bodyTextStyle, color = colorScheme.onErrorContainer)
} }

View File

@@ -0,0 +1 @@
unqualifiedResLocale=zh-CN