Skip to content

Commit

Permalink
manager: add unofficial warning
Browse files Browse the repository at this point in the history
  • Loading branch information
rsuntk committed Oct 28, 2024
1 parent 1f67aa9 commit ab03606
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
27 changes: 27 additions & 0 deletions manager/app/src/main/java/me/weishu/kernelsu/ui/screen/Home.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions manager/app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@
<string name="home_click_to_learn_kernelsu">Learn how to install KernelSU and use modules</string>
<string name="home_support_title">Support Us</string>
<string name="home_support_content">KernelSU is, and always will be, free, and open source. You can however show us that you care by making a donation.</string>
<string name="home_rsu_unofficial_title">Unofficial KernelSU Manager</string>
<string name="home_rsu_unofficial_content">This manager has been modified to work with non-GKI kernels. You can check the source here.</string>
<string name="about_source_code"><![CDATA[View source code at %1$s<br/>Join our %2$s channel]]></string>
<string name="profile" translatable="false">App Profile</string>
<string name="profile_default">Default</string>
Expand Down

0 comments on commit ab03606

Please sign in to comment.