Fix issue detected by lint.
This commit is contained in:
parent
e8d7c0bf2d
commit
b5d15ee787
6 changed files with 16 additions and 11 deletions
|
|
@ -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,
|
||||
)
|
||||
},
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue