Fix issue detected by lint.

This commit is contained in:
Benoit Marty 2025-12-17 10:36:23 +01:00
parent e8d7c0bf2d
commit b5d15ee787
6 changed files with 16 additions and 11 deletions

View file

@ -721,6 +721,7 @@ private fun DebugInfoSection(
) {
val context = LocalContext.current
PreferenceCategory(showTopDivider = true) {
val toastMessage = stringResource(CommonStrings.common_copied_to_clipboard)
ListItem(
headlineContent = {
Text("Internal room ID")
@ -736,8 +737,8 @@ private fun DebugInfoSection(
trailingContent = ListItemContent.Icon(IconSource.Vector(CompoundIcons.Copy())),
onClick = {
context.copyToClipboard(
roomId.value,
context.getString(CommonStrings.common_copied_to_clipboard)
text = roomId.value,
toastMessage = toastMessage,
)
},
)