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

Commit ae134c2

Browse files
ukriubackslashxx
authored andcommitted
manager: show module id on module page (tiann#2365)
1 parent 0953583 commit ae134c2

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
@@ -562,6 +562,7 @@ fun ModuleItem(
562562
horizontalArrangement = Arrangement.SpaceBetween,
563563
) {
564564
val moduleVersion = stringResource(id = R.string.module_version)
565+
val moduleId = stringResource(id = R.string.module_id)
565566
val moduleAuthor = stringResource(id = R.string.module_author)
566567

567568
Column(
@@ -584,6 +585,14 @@ fun ModuleItem(
584585
textDecoration = textDecoration
585586
)
586587

588+
Text(
589+
text = "$moduleId: ${module.id}",
590+
fontSize = MaterialTheme.typography.bodySmall.fontSize,
591+
lineHeight = MaterialTheme.typography.bodySmall.lineHeight,
592+
fontFamily = MaterialTheme.typography.bodySmall.fontFamily,
593+
textDecoration = textDecoration
594+
)
595+
587596
Text(
588597
text = "$moduleAuthor: ${module.author}",
589598
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
@@ -41,6 +41,7 @@
4141
<string name="module_uninstall_success">%s uninstalled</string>
4242
<string name="module_uninstall_failed">Failed to uninstall: %s</string>
4343
<string name="module_version">Version</string>
44+
<string name="module_id">Module ID</string>
4445
<string name="module_author">Author</string>
4546
<string name="refresh">Refresh</string>
4647
<string name="show_system_apps">Show system apps</string>

0 commit comments

Comments
 (0)