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) {
|
fun setIsMultiDeleteState(value: Boolean) {
|
||||||
if (isMultiDeleteState == value) return
|
if (isMultiDeleteState == value) return
|
||||||
isMultiDeleteState = value
|
isMultiDeleteState = value
|
||||||
if (!value) {
|
notifyItemRangeChanged(0, itemCount)
|
||||||
currentList.indices.forEach { index ->
|
|
||||||
notifyItemChanged(index)
|
|
||||||
}
|
|
||||||
} else notifyItemRangeChanged(0, itemCount)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fun notifyAllSelected() {
|
fun notifyAllSelected() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue