From e8283d2ed411b193009d39617f3d1db2d33927b0 Mon Sep 17 00:00:00 2001 From: dece Date: Wed, 26 Jan 2022 20:00:50 +0100 Subject: [PATCH] PageAdapter: do not underline links, it's boring --- app/src/main/java/dev/lowrespalmtree/comet/PageAdapter.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/dev/lowrespalmtree/comet/PageAdapter.kt b/app/src/main/java/dev/lowrespalmtree/comet/PageAdapter.kt index c9c1e01..614154a 100644 --- a/app/src/main/java/dev/lowrespalmtree/comet/PageAdapter.kt +++ b/app/src/main/java/dev/lowrespalmtree/comet/PageAdapter.kt @@ -148,9 +148,7 @@ class PageAdapter(private val listener: ContentAdapterListener) : } is ContentBlock.Link -> { val label = if (block.label.isNotBlank()) block.label else block.url - val underlinedLabel = SpannableString(label) - underlinedLabel.setSpan(UnderlineSpan(), 0, underlinedLabel.length, 0) - (holder as ContentViewHolder.Link).binding.textView.text = underlinedLabel + (holder as ContentViewHolder.Link).binding.textView.text = label holder.binding.root.setOnClickListener { listener.onLinkClick(block.url) } } is ContentBlock.Pre ->