Skip to content
This repository was archived by the owner on Oct 30, 2025. It is now read-only.

Commit 127f7dc

Browse files
ukriubackslashxx
authored andcommitted
manager: show module id on module page (tiann#2365)
1 parent 5375e92 commit 127f7dc

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

manager/app/src/main/java/me/weishu/kernelsu/ui/screen/Module.kt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,7 @@ fun ModuleItem(
590590
horizontalArrangement = Arrangement.SpaceBetween,
591591
) {
592592
val moduleVersion = stringResource(id = R.string.module_version)
593+
val moduleId = stringResource(id = R.string.module_id)
593594
val moduleAuthor = stringResource(id = R.string.module_author)
594595

595596
Column(
@@ -612,6 +613,14 @@ fun ModuleItem(
612613
textDecoration = textDecoration
613614
)
614615

616+
Text(
617+
text = "$moduleId: ${module.id}",
618+
fontSize = MaterialTheme.typography.bodySmall.fontSize,
619+
lineHeight = MaterialTheme.typography.bodySmall.lineHeight,
620+
fontFamily = MaterialTheme.typography.bodySmall.fontFamily,
621+
textDecoration = textDecoration
622+
)
623+
615624
Text(
616625
text = "$moduleAuthor: ${module.author}",
617626
fontSize = MaterialTheme.typography.bodySmall.fontSize,

manager/app/src/main/res/values/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
<string name="module_uninstall_success">%s uninstalled</string>
4444
<string name="module_uninstall_failed">Failed to uninstall: %s</string>
4545
<string name="module_version">Version</string>
46+
<string name="module_id">Module ID</string>
4647
<string name="module_author">Author</string>
4748
<string name="refresh">Refresh</string>
4849
<string name="show_system_apps">Show system apps</string>

0 commit comments

Comments
 (0)