Merge pull request #6395 from Bnyro/master

fix: can't expand description
This commit is contained in:
Bnyro 2024-08-23 16:34:58 +02:00 committed by GitHub
commit d9c244ad27
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -15,6 +15,7 @@ import com.github.libretube.R
import com.github.libretube.api.obj.Streams import com.github.libretube.api.obj.Streams
import com.github.libretube.databinding.DescriptionLayoutBinding import com.github.libretube.databinding.DescriptionLayoutBinding
import com.github.libretube.extensions.formatShort import com.github.libretube.extensions.formatShort
import com.github.libretube.helpers.ClipboardHelper
import com.github.libretube.ui.activities.VideoTagsAdapter import com.github.libretube.ui.activities.VideoTagsAdapter
import com.github.libretube.util.HtmlParser import com.github.libretube.util.HtmlParser
import com.github.libretube.util.LinkHandler import com.github.libretube.util.LinkHandler
@ -35,6 +36,10 @@ class DescriptionLayout(
binding.playerTitleLayout.setOnClickListener { binding.playerTitleLayout.setOnClickListener {
toggleDescription() toggleDescription()
} }
binding.playerTitleLayout.setOnLongClickListener {
streams?.title?.let { ClipboardHelper.save(context, text = it) }
true
}
} }
@SuppressLint("SetTextI18n") @SuppressLint("SetTextI18n")

View File

@ -30,7 +30,6 @@
android:layout_marginEnd="5dp" android:layout_marginEnd="5dp"
android:layout_weight="1" android:layout_weight="1"
android:maxLines="2" android:maxLines="2"
android:textIsSelectable="true"
android:textSize="18sp" android:textSize="18sp"
tools:text="Video Title" /> tools:text="Video Title" />