mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
Fix unneeded notifyDataSetChanged()
This commit is contained in:
parent
6c3926bef3
commit
6ee2a54e7a
1 changed files with 4 additions and 2 deletions
|
@ -331,8 +331,10 @@ class DownloadAdapter(
|
|||
|
||||
@SuppressLint("NotifyDataSetChanged")
|
||||
fun clearSelectedItems() {
|
||||
selectedIds.clear()
|
||||
notifyDataSetChanged()
|
||||
if (selectedIds.isNotEmpty()) {
|
||||
selectedIds.clear()
|
||||
notifyDataSetChanged()
|
||||
}
|
||||
}
|
||||
|
||||
private fun toggleIsChecked(checkbox: CheckBox, item: VisualDownloadCached) {
|
||||
|
|
Loading…
Reference in a new issue