diff --git a/manager/app/src/main/java/me/weishu/kernelsu/ui/screen/AppProfile.kt b/manager/app/src/main/java/me/weishu/kernelsu/ui/screen/AppProfile.kt
index e7bce536..933dedfa 100644
--- a/manager/app/src/main/java/me/weishu/kernelsu/ui/screen/AppProfile.kt
+++ b/manager/app/src/main/java/me/weishu/kernelsu/ui/screen/AppProfile.kt
@@ -49,8 +49,6 @@ import com.ramcosta.composedestinations.navigation.DestinationsNavigator
import kotlinx.coroutines.launch
import me.weishu.kernelsu.Natives
import me.weishu.kernelsu.R
-import me.weishu.kernelsu.ui.component.AboutDialog
-import me.weishu.kernelsu.ui.component.LoadingDialog
import me.weishu.kernelsu.ui.util.LocalSnackbarHost
/**
@@ -101,9 +99,9 @@ fun AppProfileScreen(
}
val setAllowlistFailedMsg = if (allowlistMode) {
- stringResource(R.string.failed_to_set_allowlist_mode)
- } else {
stringResource(R.string.failed_to_set_denylist_mode)
+ } else {
+ stringResource(R.string.failed_to_set_allowlist_mode)
}
WorkingMode(allowlistMode) { checked ->
if (Natives.setAllowlistMode(checked)) {
@@ -135,23 +133,23 @@ fun AppProfileScreen(
},
)
- var isChecked by rememberSaveable {
+ var isGrantRoot by rememberSaveable {
mutableStateOf(grantRoot)
}
- val failMessage = stringResource(R.string.superuser_failed_to_grant_root)
+ val failToGrantRoot = stringResource(R.string.superuser_failed_to_grant_root)
AppSwitch(
Icons.Filled.Security,
- stringResource(id = R.string.app_profile_root_switch),
- checked = isChecked
+ stringResource(id = R.string.superuser),
+ checked = isGrantRoot
) { checked ->
scope.launch {
val success = Natives.allowRoot(uid, checked)
if (success) {
- isChecked = checked
+ isGrantRoot = checked
} else {
- snackbarHost.showSnackbar(failMessage.format(uid))
+ snackbarHost.showSnackbar(failToGrantRoot.format(uid))
}
}
}
diff --git a/manager/app/src/main/res/values-zh-rCN/strings.xml b/manager/app/src/main/res/values-zh-rCN/strings.xml
index 471c2371..570f6f9c 100644
--- a/manager/app/src/main/res/values-zh-rCN/strings.xml
+++ b/manager/app/src/main/res/values-zh-rCN/strings.xml
@@ -62,7 +62,12 @@
KernelSU 将保持免费和开源,向开发者捐赠以表示支持。
加入我们的 %2$s 频道
加入我们的 QQ 频道]]>
应用
- Root 权限
- Denylist
全局
+ 白名单
+ 黑名单
+ 工作模式
+ 全换到白名单模式失败!
+ 添加 %s 到白名单失败!
+ 添加 %s 到黑名单失败!
+ 切换到黑名单模式失败!
diff --git a/manager/app/src/main/res/values-zh-rHK/strings.xml b/manager/app/src/main/res/values-zh-rHK/strings.xml
index 59ba957a..b0eb79bc 100644
--- a/manager/app/src/main/res/values-zh-rHK/strings.xml
+++ b/manager/app/src/main/res/values-zh-rHK/strings.xml
@@ -64,4 +64,11 @@
支持我們
KernelSU 是免費且開源的,您可以透過捐贈來向我們展示您對我們的關心。
加入我們的 %2$s 頻道]]>
+ 白名單
+ 黑名單
+ 工作模式
+ 全換到白名單模式失敗!
+ 添加 %s 到白名單失敗!
+ 添加 %s 到黑名單失敗!
+ 切換到黑名單模式失敗!
diff --git a/manager/app/src/main/res/values-zh-rTW/strings.xml b/manager/app/src/main/res/values-zh-rTW/strings.xml
index 7f5a5a0f..09e557fa 100644
--- a/manager/app/src/main/res/values-zh-rTW/strings.xml
+++ b/manager/app/src/main/res/values-zh-rTW/strings.xml
@@ -64,4 +64,11 @@
支持開發
KernelSU 將保持免費和開源,您可以考慮向開發人員捐贈以表示支持。
加入我們的 %2$s 頻道]]>
+ 白名單
+ 黑名單
+ 工作模式
+ 全換到白名單模式失敗!
+ 添加 %s 到白名單失敗!
+ 添加 %s 到黑名單失敗!
+ 切換到黑名單模式失敗!
diff --git a/manager/app/src/main/res/values/strings.xml b/manager/app/src/main/res/values/strings.xml
index b7f454d9..657b1178 100644
--- a/manager/app/src/main/res/values/strings.xml
+++ b/manager/app/src/main/res/values/strings.xml
@@ -68,7 +68,6 @@
App Profile
Application
Root Profile
- Grant Root
Allowlist
Denylist
Global