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

@ -73,13 +73,14 @@ private fun LineRow(
colorationMode: ColorationMode,
) {
val context = LocalContext.current
val toastMessage = stringResource(CommonStrings.common_line_copied_to_clipboard)
Row(
modifier = Modifier
.fillMaxWidth()
.clickable(onClick = {
context.copyToClipboard(
text = line,
toastMessage = context.getString(CommonStrings.common_line_copied_to_clipboard),
toastMessage = toastMessage,
)
})
) {