Long press moved to layout comment.

This commit is contained in:
Koen J
2025-11-06 14:26:11 +01:00
parent 33efc5c21d
commit aac19aef86
@@ -103,7 +103,7 @@ class CommentViewHolder : ViewHolder {
StatePolycentric.instance.updateLikeMap(c.reference, args.hasLiked, args.hasDisliked) StatePolycentric.instance.updateLikeMap(c.reference, args.hasLiked, args.hasDisliked)
}; };
_textBody.setOnLongClickListener { _layoutComment.setOnLongClickListener {
val clipboard = viewGroup.context.getSystemService(Context.CLIPBOARD_SERVICE) as ClipboardManager val clipboard = viewGroup.context.getSystemService(Context.CLIPBOARD_SERVICE) as ClipboardManager
val text = comment?.message.orEmpty() val text = comment?.message.orEmpty()
val clip = ClipData.newPlainText("Comment", text) val clip = ClipData.newPlainText("Comment", text)