3
3
Fork 1
mirror of https://github.com/recloudstream/cloudstream.git synced 2024-08-15 01:53:11 +00:00

Just use notifyItemRangeChanged

This commit is contained in:
Luna712 2024-07-18 17:42:41 -06:00 committed by GitHub
parent dc582e852b
commit c861cf9e42
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -352,11 +352,7 @@ class DownloadAdapter(
fun setIsMultiDeleteState(value: Boolean) {
if (isMultiDeleteState == value) return
isMultiDeleteState = value
if (!value) {
currentList.indices.forEach { index ->
notifyItemChanged(index)
}
} else notifyItemRangeChanged(0, itemCount)
notifyItemRangeChanged(0, itemCount)
}
fun notifyAllSelected() {