From b47b702a52c0d540dcf937cbfaa86b1bbd3c8532 Mon Sep 17 00:00:00 2001 From: arkon Date: Wed, 9 Mar 2022 18:01:28 -0500 Subject: [PATCH] Copy raw description on long tap (fixes #6557) --- .../eu/kanade/tachiyomi/widget/MangaSummaryView.kt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/widget/MangaSummaryView.kt b/app/src/main/java/eu/kanade/tachiyomi/widget/MangaSummaryView.kt index de98a8d59..ed6c62275 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/widget/MangaSummaryView.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/widget/MangaSummaryView.kt @@ -169,10 +169,12 @@ class MangaSummaryView @JvmOverloads constructor( minLines = DESC_MIN_LINES setOnLongClickListener { - context.copyToClipboard( - context.getString(R.string.description), - text.toString() - ) + description?.let { + context.copyToClipboard( + context.getString(R.string.description), + it.toString() + ) + } true } }