Remove uneeded checks for should move, fixes moving a manga to the first positon

This commit is contained in:
Jobobby04 2020-08-08 16:07:18 -04:00
parent 5714f183a8
commit 340e534ca9

View File

@ -381,8 +381,7 @@ class LibraryCategoryView @JvmOverloads constructor(context: Context, attrs: Att
override fun shouldMoveItem(fromPosition: Int, toPosition: Int): Boolean {
if (adapter.isSelected(fromPosition)) toggleSelection(fromPosition)
if (toPosition < 1) return false
return adapter.getItem(fromPosition) is LibraryItem
return true
}
override fun onActionStateChanged(viewHolder: RecyclerView.ViewHolder?, actionState: Int) {