From b387946d34e388a7c9a54a745b5c693a9d445c0a Mon Sep 17 00:00:00 2001 From: Isira Seneviratne Date: Fri, 27 Nov 2020 20:19:48 +0530 Subject: [PATCH] Use BindableItem in FeedGroupAddItem. --- .../local/subscription/item/FeedGroupAddItem.kt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/local/subscription/item/FeedGroupAddItem.kt b/app/src/main/java/org/schabi/newpipe/local/subscription/item/FeedGroupAddItem.kt index 1bc4d1673..434b4f29a 100644 --- a/app/src/main/java/org/schabi/newpipe/local/subscription/item/FeedGroupAddItem.kt +++ b/app/src/main/java/org/schabi/newpipe/local/subscription/item/FeedGroupAddItem.kt @@ -1,10 +1,12 @@ package org.schabi.newpipe.local.subscription.item -import com.xwray.groupie.kotlinandroidextensions.GroupieViewHolder -import com.xwray.groupie.kotlinandroidextensions.Item +import android.view.View +import com.xwray.groupie.viewbinding.BindableItem import org.schabi.newpipe.R +import org.schabi.newpipe.databinding.FeedGroupAddNewItemBinding -class FeedGroupAddItem : Item() { +class FeedGroupAddItem : BindableItem() { override fun getLayout(): Int = R.layout.feed_group_add_new_item - override fun bind(viewHolder: GroupieViewHolder, position: Int) {} + override fun bind(viewBinding: FeedGroupAddNewItemBinding, position: Int) {} + override fun initializeViewBinding(view: View) = FeedGroupAddNewItemBinding.bind(view) }