Skip to content

Commit

Permalink
manager: show module id on module page (tiann#2365)
Browse files Browse the repository at this point in the history
  • Loading branch information
ukriu authored and selfmusing committed Feb 21, 2025
1 parent 73ac145 commit 1d2da03
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,7 @@ fun ModuleItem(
horizontalArrangement = Arrangement.SpaceBetween,
) {
val moduleVersion = stringResource(id = R.string.module_version)
val moduleId = stringResource(id = R.string.module_id)
val moduleAuthor = stringResource(id = R.string.module_author)

Column(
Expand All @@ -612,6 +613,14 @@ fun ModuleItem(
textDecoration = textDecoration
)

Text(
text = "$moduleId: ${module.id}",
fontSize = MaterialTheme.typography.bodySmall.fontSize,
lineHeight = MaterialTheme.typography.bodySmall.lineHeight,
fontFamily = MaterialTheme.typography.bodySmall.fontFamily,
textDecoration = textDecoration
)

Text(
text = "$moduleAuthor: ${module.author}",
fontSize = MaterialTheme.typography.bodySmall.fontSize,
Expand Down
1 change: 1 addition & 0 deletions manager/app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
<string name="module_uninstall_success">%s uninstalled</string>
<string name="module_uninstall_failed">Failed to uninstall: %s</string>
<string name="module_version">Version</string>
<string name="module_id">Module ID</string>
<string name="module_author">Author</string>
<string name="refresh">Refresh</string>
<string name="show_system_apps">Show system apps</string>
Expand Down

0 comments on commit 1d2da03

Please sign in to comment.