mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-02-01 08:01:02 +00:00
Initial commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package ani.dantotsu.media.anime
|
||||
|
||||
import ani.dantotsu.media.MediaDetailsViewModel
|
||||
import ani.dantotsu.media.SourceAdapter
|
||||
import ani.dantotsu.media.SourceSearchDialogFragment
|
||||
import ani.dantotsu.parsers.ShowResponse
|
||||
import kotlinx.coroutines.CoroutineScope
|
||||
|
||||
class AnimeSourceAdapter(
|
||||
sources: List<ShowResponse>,
|
||||
val model: MediaDetailsViewModel,
|
||||
val i: Int,
|
||||
val id: Int,
|
||||
fragment: SourceSearchDialogFragment,
|
||||
scope: CoroutineScope
|
||||
) : SourceAdapter(sources, fragment, scope) {
|
||||
|
||||
override suspend fun onItemClick(source: ShowResponse) {
|
||||
model.overrideEpisodes(i, source, id)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user