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:
parent
dc582e852b
commit
c861cf9e42
1 changed files with 1 additions and 5 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue