Just use handleDownloadClick

This commit is contained in:
Luna712 2024-06-14 13:03:19 -06:00 committed by GitHub
parent 3ceabb4de3
commit 312c2a738b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,6 +14,7 @@ import androidx.recyclerview.widget.ItemTouchHelper
import androidx.recyclerview.widget.RecyclerView
import com.lagradost.cloudstream3.R
import com.lagradost.cloudstream3.isEpisodeBased
import com.lagradost.cloudstream3.ui.download.DownloadButtonSetup.handleDownloadClick
import com.lagradost.cloudstream3.utils.Coroutines.runOnMainThread
class DownloadSwipeToDeleteCallback(
@ -161,7 +162,7 @@ class DownloadSwipeToDeleteCallback(
val item = adapter.cardList[position]
runOnMainThread {
item.child?.let { clickEvent ->
DownloadButtonSetup.handleDownloadClick(
handleDownloadClick(
DownloadClickEvent(
DOWNLOAD_ACTION_DELETE_FILE,
clickEvent