mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-28 16:00:31 +05:30
Navigate to channel on click in channel groups sheet
This commit is contained in:
parent
8cf4f76d4e
commit
01b98a0f77
@ -8,6 +8,7 @@ import com.github.libretube.databinding.SubscriptionGroupChannelRowBinding
|
||||
import com.github.libretube.db.obj.SubscriptionGroup
|
||||
import com.github.libretube.extensions.toID
|
||||
import com.github.libretube.helpers.ImageHelper
|
||||
import com.github.libretube.helpers.NavigationHelper
|
||||
import com.github.libretube.ui.viewholders.SubscriptionGroupChannelRowViewHolder
|
||||
|
||||
class SubscriptionGroupChannelsAdapter(
|
||||
@ -30,6 +31,9 @@ class SubscriptionGroupChannelsAdapter(
|
||||
val channel = channels[position]
|
||||
val channelId = channel.url.toID()
|
||||
holder.binding.apply {
|
||||
root.setOnClickListener {
|
||||
NavigationHelper.navigateChannel(root.context, channelId)
|
||||
}
|
||||
subscriptionChannelName.text = channel.name
|
||||
ImageHelper.loadImage(channel.avatar, subscriptionChannelImage)
|
||||
channelIncluded.setOnCheckedChangeListener(null)
|
||||
|
@ -4,7 +4,7 @@
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:background="@drawable/rounded_ripple"
|
||||
android:paddingHorizontal="10dp" >
|
||||
|
||||
<com.google.android.material.imageview.ShapeableImageView
|
||||
|
Loading…
x
Reference in New Issue
Block a user