Merge pull request #6449 from Bnyro/master

fix: issues with channel name caused by textIsSelectable
This commit is contained in:
Bnyro 2024-09-05 11:14:12 +02:00 committed by GitHub
commit 966d4f188f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -24,6 +24,7 @@ import com.github.libretube.enums.ShareObjectType
import com.github.libretube.extensions.TAG
import com.github.libretube.extensions.formatShort
import com.github.libretube.extensions.toID
import com.github.libretube.helpers.ClipboardHelper
import com.github.libretube.helpers.ImageHelper
import com.github.libretube.helpers.NavigationHelper
import com.github.libretube.obj.ShareData
@ -193,6 +194,11 @@ class ChannelFragment : DynamicLayoutManagerFragment() {
binding.channelCoordinator.isVisible = true
binding.channelName.text = response.name
binding.channelName.setOnLongClickListener {
ClipboardHelper.save(requireContext(), text = response.name.orEmpty())
true
}
if (response.verified) {
binding.channelName
.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.ic_verified, 0)

View File

@ -67,7 +67,6 @@
android:drawablePadding="3dp"
android:ellipsize="end"
android:maxLines="1"
android:textIsSelectable="true"
android:textSize="16sp"
android:textStyle="bold"
tools:text="Channel Name" />