From ab03606e8bba5ee9b3c2ce263505202f4eb2bf74 Mon Sep 17 00:00:00 2001 From: rsuntk Date: Mon, 28 Oct 2024 16:45:44 +0700 Subject: [PATCH] manager: add unofficial warning --- .../java/me/weishu/kernelsu/ui/screen/Home.kt | 27 +++++++++++++++++++ manager/app/src/main/res/values/strings.xml | 2 ++ 2 files changed, 29 insertions(+) diff --git a/manager/app/src/main/java/me/weishu/kernelsu/ui/screen/Home.kt b/manager/app/src/main/java/me/weishu/kernelsu/ui/screen/Home.kt index 0fa3b34a8d4e..5d2e950e31a5 100644 --- a/manager/app/src/main/java/me/weishu/kernelsu/ui/screen/Home.kt +++ b/manager/app/src/main/java/me/weishu/kernelsu/ui/screen/Home.kt @@ -394,6 +394,33 @@ fun DonateCard() { } } +@Composable +fun UnofficialCard() { + val uriHandler = LocalUriHandler.current + + ElevatedCard { + + Row(modifier = Modifier + .fillMaxWidth() + .clickable { + uriHandler.openUri("https://github.com/rsuntk/KernelSU") + } + .padding(24.dp), verticalAlignment = Alignment.CenterVertically) { + Column { + Text( + text = stringResource(R.string.home_rsu_unofficial_title), + style = MaterialTheme.typography.titleSmall + ) + Spacer(Modifier.height(4.dp)) + Text( + text = stringResource(R.string.home_rsu_unofficial_content), + style = MaterialTheme.typography.bodyMedium + ) + } + } + } +} + @Composable private fun InfoCard() { val context = LocalContext.current diff --git a/manager/app/src/main/res/values/strings.xml b/manager/app/src/main/res/values/strings.xml index e9d058e9e0bd..23b80797d771 100644 --- a/manager/app/src/main/res/values/strings.xml +++ b/manager/app/src/main/res/values/strings.xml @@ -52,6 +52,8 @@ Learn how to install KernelSU and use modules Support Us KernelSU is, and always will be, free, and open source. You can however show us that you care by making a donation. + Unofficial KernelSU Manager + This manager has been modified to work with non-GKI kernels. You can check the source here. Join our %2$s channel]]> App Profile Default