mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-13 22:00:30 +05:30
Merge pull request #6449 from Bnyro/master
fix: issues with channel name caused by textIsSelectable
This commit is contained in:
commit
966d4f188f
@ -24,6 +24,7 @@ import com.github.libretube.enums.ShareObjectType
|
|||||||
import com.github.libretube.extensions.TAG
|
import com.github.libretube.extensions.TAG
|
||||||
import com.github.libretube.extensions.formatShort
|
import com.github.libretube.extensions.formatShort
|
||||||
import com.github.libretube.extensions.toID
|
import com.github.libretube.extensions.toID
|
||||||
|
import com.github.libretube.helpers.ClipboardHelper
|
||||||
import com.github.libretube.helpers.ImageHelper
|
import com.github.libretube.helpers.ImageHelper
|
||||||
import com.github.libretube.helpers.NavigationHelper
|
import com.github.libretube.helpers.NavigationHelper
|
||||||
import com.github.libretube.obj.ShareData
|
import com.github.libretube.obj.ShareData
|
||||||
@ -193,6 +194,11 @@ class ChannelFragment : DynamicLayoutManagerFragment() {
|
|||||||
binding.channelCoordinator.isVisible = true
|
binding.channelCoordinator.isVisible = true
|
||||||
|
|
||||||
binding.channelName.text = response.name
|
binding.channelName.text = response.name
|
||||||
|
binding.channelName.setOnLongClickListener {
|
||||||
|
ClipboardHelper.save(requireContext(), text = response.name.orEmpty())
|
||||||
|
true
|
||||||
|
}
|
||||||
|
|
||||||
if (response.verified) {
|
if (response.verified) {
|
||||||
binding.channelName
|
binding.channelName
|
||||||
.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.ic_verified, 0)
|
.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.ic_verified, 0)
|
||||||
|
@ -67,7 +67,6 @@
|
|||||||
android:drawablePadding="3dp"
|
android:drawablePadding="3dp"
|
||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
android:maxLines="1"
|
android:maxLines="1"
|
||||||
android:textIsSelectable="true"
|
|
||||||
android:textSize="16sp"
|
android:textSize="16sp"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
tools:text="Channel Name" />
|
tools:text="Channel Name" />
|
||||||
|
Loading…
Reference in New Issue
Block a user