From 33263053099f5f1d949a72a4c9095f1abe0fbbba Mon Sep 17 00:00:00 2001 From: Bnyro Date: Fri, 10 Mar 2023 18:11:38 +0100 Subject: [PATCH] Fix the formatting of copied comments --- .../java/com/github/libretube/ui/adapters/CommentsAdapter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/github/libretube/ui/adapters/CommentsAdapter.kt b/app/src/main/java/com/github/libretube/ui/adapters/CommentsAdapter.kt index 99d8ec4c7..d313e9bca 100644 --- a/app/src/main/java/com/github/libretube/ui/adapters/CommentsAdapter.kt +++ b/app/src/main/java/com/github/libretube/ui/adapters/CommentsAdapter.kt @@ -116,7 +116,7 @@ class CommentsAdapter( } } root.setOnLongClickListener { - ClipboardHelper.save(root.context, comment.commentText ?: "") + ClipboardHelper.save(root.context, comment.commentText.orEmpty().parseAsHtml().toString()) Toast.makeText(root.context, R.string.copied, Toast.LENGTH_SHORT).show() true }