Skip to content

Commit

Permalink
fix: can't expand description
Browse files Browse the repository at this point in the history
  • Loading branch information
Bnyro committed Aug 23, 2024
1 parent 213fc62 commit 8b0e6ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import com.github.libretube.R
import com.github.libretube.api.obj.Streams
import com.github.libretube.databinding.DescriptionLayoutBinding
import com.github.libretube.extensions.formatShort
import com.github.libretube.helpers.ClipboardHelper
import com.github.libretube.ui.activities.VideoTagsAdapter
import com.github.libretube.util.HtmlParser
import com.github.libretube.util.LinkHandler
Expand All @@ -35,6 +36,10 @@ class DescriptionLayout(
binding.playerTitleLayout.setOnClickListener {
toggleDescription()
}
binding.playerTitleLayout.setOnLongClickListener {
streams?.title?.let { ClipboardHelper.save(context, text = it) }
true
}
}

@SuppressLint("SetTextI18n")
Expand Down
1 change: 0 additions & 1 deletion app/src/main/res/layout/description_layout.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
android:layout_marginEnd="5dp"
android:layout_weight="1"
android:maxLines="2"
android:textIsSelectable="true"
android:textSize="18sp"
tools:text="Video Title" />

Expand Down

0 comments on commit 8b0e6ce

Please sign in to comment.