mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
Just use handleDownloadClick
This commit is contained in:
parent
3ceabb4de3
commit
312c2a738b
1 changed files with 2 additions and 1 deletions
|
@ -14,6 +14,7 @@ import androidx.recyclerview.widget.ItemTouchHelper
|
||||||
import androidx.recyclerview.widget.RecyclerView
|
import androidx.recyclerview.widget.RecyclerView
|
||||||
import com.lagradost.cloudstream3.R
|
import com.lagradost.cloudstream3.R
|
||||||
import com.lagradost.cloudstream3.isEpisodeBased
|
import com.lagradost.cloudstream3.isEpisodeBased
|
||||||
|
import com.lagradost.cloudstream3.ui.download.DownloadButtonSetup.handleDownloadClick
|
||||||
import com.lagradost.cloudstream3.utils.Coroutines.runOnMainThread
|
import com.lagradost.cloudstream3.utils.Coroutines.runOnMainThread
|
||||||
|
|
||||||
class DownloadSwipeToDeleteCallback(
|
class DownloadSwipeToDeleteCallback(
|
||||||
|
@ -161,7 +162,7 @@ class DownloadSwipeToDeleteCallback(
|
||||||
val item = adapter.cardList[position]
|
val item = adapter.cardList[position]
|
||||||
runOnMainThread {
|
runOnMainThread {
|
||||||
item.child?.let { clickEvent ->
|
item.child?.let { clickEvent ->
|
||||||
DownloadButtonSetup.handleDownloadClick(
|
handleDownloadClick(
|
||||||
DownloadClickEvent(
|
DownloadClickEvent(
|
||||||
DOWNLOAD_ACTION_DELETE_FILE,
|
DOWNLOAD_ACTION_DELETE_FILE,
|
||||||
clickEvent
|
clickEvent
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue