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 4, 2025
1 parent fb4982d commit adf1354
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 @@ -562,6 +562,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 @@ -584,6 +585,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 @@ -41,6 +41,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 adf1354

Please sign in to comment.