This commit is contained in:
Luna712 2024-07-05 13:55:14 -06:00 committed by GitHub
parent 3e62382d3e
commit 560873a384
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -129,7 +129,7 @@ class DownloadChildFragment : Fragment() {
downloadDeleteEventListener = { id: Int ->
val adapter = binding?.downloadChildList?.adapter as? DownloadAdapter
val list = adapter?.currentList
if (list?.any { it.data.id == id }) {
if (list?.any { it.data.id == id } == true) {
adapter.removeItem(id)
updateList(folder)
}