Merge pull request #3286 from Bnyro/master

Fix the formatting of copied comments
This commit is contained in:
Bnyro 2023-03-10 18:11:57 +01:00 committed by GitHub
commit 57a394098d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}