From 312c2a738b6d245dfad0c15701cc2e7b4e587723 Mon Sep 17 00:00:00 2001 From: Luna712 <142361265+Luna712@users.noreply.github.com> Date: Fri, 14 Jun 2024 13:03:19 -0600 Subject: [PATCH] Just use handleDownloadClick --- .../cloudstream3/ui/download/DownloadSwipeToDeleteCallback.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/lagradost/cloudstream3/ui/download/DownloadSwipeToDeleteCallback.kt b/app/src/main/java/com/lagradost/cloudstream3/ui/download/DownloadSwipeToDeleteCallback.kt index c3f088eb..14652d25 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/ui/download/DownloadSwipeToDeleteCallback.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/ui/download/DownloadSwipeToDeleteCallback.kt @@ -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