pull/737/head
gedoor 4 years ago
parent 32f1025ce9
commit 6d871afd86
  1. 3
      app/src/main/java/io/legado/app/base/adapter/CommonRecyclerAdapter.kt

@ -174,8 +174,7 @@ abstract class CommonRecyclerAdapter<ITEM, VB : ViewBinding>(protected val conte
val srcPosition = oldPosition + getHeaderCount()
val targetPosition = newPosition + getHeaderCount()
Collections.swap(this.items, srcPosition, targetPosition)
notifyItemChanged(srcPosition)
notifyItemChanged(targetPosition)
notifyItemMoved(srcPosition, targetPosition)
}
}
}

Loading…
Cancel
Save