mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 16:30:31 +05:30
Merge pull request #6395 from Bnyro/master
fix: can't expand description
This commit is contained in:
commit
d9c244ad27
@ -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")
|
||||||
|
@ -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" />
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user