3
3
Fork 1
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:
Luna712 2024-07-09 22:15:12 -06:00 committed by GitHub
parent 6c3926bef3
commit 6ee2a54e7a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {