From 46afe5153f6d7e774fd63e0a07007eb485d42e84 Mon Sep 17 00:00:00 2001 From: Isira Seneviratne Date: Fri, 27 Nov 2020 20:18:38 +0530 Subject: [PATCH] Use BindableItem in EmptyPlaceholderItem. --- .../local/subscription/item/EmptyPlaceholderItem.kt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/local/subscription/item/EmptyPlaceholderItem.kt b/app/src/main/java/org/schabi/newpipe/local/subscription/item/EmptyPlaceholderItem.kt index ef7eb93cd..59bef55cf 100644 --- a/app/src/main/java/org/schabi/newpipe/local/subscription/item/EmptyPlaceholderItem.kt +++ b/app/src/main/java/org/schabi/newpipe/local/subscription/item/EmptyPlaceholderItem.kt @@ -1,11 +1,13 @@ 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.ListEmptyViewBinding -class EmptyPlaceholderItem : Item() { +class EmptyPlaceholderItem : BindableItem() { override fun getLayout(): Int = R.layout.list_empty_view - override fun bind(viewHolder: GroupieViewHolder, position: Int) {} + override fun bind(viewBinding: ListEmptyViewBinding, position: Int) {} override fun getSpanSize(spanCount: Int, position: Int): Int = spanCount + override fun initializeViewBinding(view: View) = ListEmptyViewBinding.bind(view) }