diff --git a/app/src/main/java/org/schabi/newpipe/local/subscription/item/FeedGroupReorderItem.kt b/app/src/main/java/org/schabi/newpipe/local/subscription/item/FeedGroupReorderItem.kt index 48b06b08a..74e481c4f 100644 --- a/app/src/main/java/org/schabi/newpipe/local/subscription/item/FeedGroupReorderItem.kt +++ b/app/src/main/java/org/schabi/newpipe/local/subscription/item/FeedGroupReorderItem.kt @@ -33,9 +33,13 @@ data class FeedGroupReorderItem( override fun bind(viewBinding: FeedGroupReorderItemBinding, position: Int) { viewBinding.groupName.text = name viewBinding.groupIcon.setImageResource(icon.getDrawableRes(viewBinding.root.context)) - viewBinding.handle.setOnTouchListener { _, event -> + } + + override fun bind(viewHolder: GroupieViewHolder, position: Int, payloads: MutableList) { + super.bind(viewHolder, position, payloads) + viewHolder.binding.handle.setOnTouchListener { _, event -> if (event.actionMasked == MotionEvent.ACTION_DOWN) { - dragCallback.startDrag(GroupieViewHolder(viewBinding)) + dragCallback.startDrag(viewHolder) return@setOnTouchListener true }