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")
|
@SuppressLint("NotifyDataSetChanged")
|
||||||
fun clearSelectedItems() {
|
fun clearSelectedItems() {
|
||||||
selectedIds.clear()
|
if (selectedIds.isNotEmpty()) {
|
||||||
notifyDataSetChanged()
|
selectedIds.clear()
|
||||||
|
notifyDataSetChanged()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun toggleIsChecked(checkbox: CheckBox, item: VisualDownloadCached) {
|
private fun toggleIsChecked(checkbox: CheckBox, item: VisualDownloadCached) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue